summaryrefslogtreecommitdiff
path: root/libswscale/utils.c
diff options
context:
space:
mode:
authorJohn-Paul Stewart <jpstewart-at-personalprojects.net@ffmpeg.org>2021-12-31 20:11:47 -0500
committerPeter Ross <pross@xvid.org>2022-01-08 09:21:21 +1100
commita8da11514347255f49e44d249075a1289ce250c9 (patch)
tree38207453f72a6f9754a2c2965b0147a0d8dd6a86 /libswscale/utils.c
parent24b93022fee322c7a17e326e2d162a1fbc3698ee (diff)
avformat/mvdec: make audio stream conditional
Only allocate an audio stream if there is one in the data. Silicon Graphics movie format will contain default values (16 bit samples, 2 audio channels, 22050 Hz sample rate) even when no audio is present in the file. This confuses FFmpeg into thinking such an audio stream is present with 0 samples in it. There is a flag value in the format to indicate whether or not audio is present. This patch checks that and behaves accordingly. Signed-off-by: John-Paul Stewart <jpstewart@personalprojects.net> Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Reviewed-by: Peter Ross <pross@xvid.org>
Diffstat (limited to 'libswscale/utils.c')
0 files changed, 0 insertions, 0 deletions