diff options
author | James Almer <jamrial@gmail.com> | 2022-05-25 12:27:59 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-06-05 09:09:07 -0300 |
commit | 5929ea6d4b1d979a5d888c3692fe24957a57e9c4 (patch) | |
tree | b2226129753d43e4e25917fcd97066471412446c /tests/ref/fate | |
parent | e93006c67bcca747839541c2f023f58135d0c716 (diff) | |
download | ffmpeg-5929ea6d4b1d979a5d888c3692fe24957a57e9c4.tar.gz |
avutil/avframe: fix channel layout checks in av_frame_copy()
Normally, both the source and dest frame would have only the old API fields
set, only the new API fields set, or both set. But in some cases, like when
calling av_frame_ref() using a non reference counted source frame where only
the old channel layout API fields were populated, the result would be the dst
frame having both the new and old fields populated.
This commit takes this into account and fixes the checks by calling
av_channel_layout_compare() only if the source frame has the new API fields
set, and doing sanity checks for the source frame old API fields if the new
ones are not set.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests/ref/fate')
0 files changed, 0 insertions, 0 deletions