Skip to content

Commit

Permalink
Fix Airplay so that it can play music again.
Browse files Browse the repository at this point in the history
Frontend can be found as an Airplay receiver, but can't play music.
Fix a bug introduced during conversion to std::array (18a6515) to
restore functionality.
  • Loading branch information
linuxdude42 committed Jan 22, 2021
1 parent 27ac82e commit 7889208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/AirPlay/mythraopconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ uint32_t MythRAOPConnection::decodeAudioPacket(uint8_t type,
AES_cbc_encrypt((const unsigned char *)data_in,
decrypted_data.data(), aeslen,
&m_aesKey, iv.data(), AES_DECRYPT);
std::copy(data_in + aeslen, data_in + len - aeslen,
std::copy(data_in + aeslen, data_in + len,
decrypted_data.data() + aeslen);

AVPacket tmp_pkt;
Expand Down

0 comments on commit 7889208

Please sign in to comment.