ffmpeg: only copy bits_per_sample from decoder when it remains valid
authorAnton Khirnov <anton@khirnov.net>
Tue, 23 Nov 2021 10:22:57 +0000 (11:22 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 4 Dec 2021 13:08:17 +0000 (14:08 +0100)
commitab3ef54c8c6a47576a07ecdaacbc0b0096374f4a
tree93ac5198dd958a20ed7c41e26a414b333e2a8422
parent425889396137451ae30288c84122e28532b71596
ffmpeg: only copy bits_per_sample from decoder when it remains valid

I.e. when the only filters that are applied do not modify the frame
data.
fftools/ffmpeg.c
fftools/ffmpeg.h
fftools/ffmpeg_filter.c