summaryrefslogtreecommitdiffstats
path: root/libavformat/rtpenc_h264_hevc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <[email protected]>2020-01-14 04:13:34 +0100
committerMichael Niedermayer <[email protected]>2020-02-22 20:45:45 +0100
commitc790500644c9f09a68611dc79168c55b8dd11a05 (patch)
treef3b444d2daf8cab4a56f408e93415b2aa54e5b6d /libavformat/rtpenc_h264_hevc.c
parentc116dd84682a2b2fb2880a75a8dbf6367f671b17 (diff)
avformat/segafilmenc: Remove redundant checks
If an audio stream is present, the Sega FILM muxer checks for its compability with the container during init, so that the very same check needn't be repeated during writing the trailer. Essentially the same is true for the presence of a video stream: It has already been checked during init. Furthermore, after the check for the presence of a video stream succeeded, a pointer is set to point to the video stream. Yet said pointer (which was NULL before) will be derefenced anyway regardless of the result of the check. Coverity thus complained about this in CID 1434155 and removing this pointless check will also fix this issue. Signed-off-by: Andreas Rheinhardt <[email protected]> Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavformat/rtpenc_h264_hevc.c')
0 files changed, 0 insertions, 0 deletions