]> git.sesse.net Git - ffmpeg/commitdiff
avformat/aiffenc: Remove always-false check
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sat, 10 Apr 2021 00:01:41 +0000 (02:01 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sun, 18 Apr 2021 00:21:19 +0000 (02:21 +0200)
write_header() already checks that there are only video tracks besides
the one audio track.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavformat/aiffenc.c

index 06e475cddb55c83542daac80740bf058db3a3308..1ecdb52ee7692d55169e27adcd50d4de8b258dc3 100644 (file)
@@ -210,9 +210,6 @@ static int aiff_write_packet(AVFormatContext *s, AVPacket *pkt)
     if (pkt->stream_index == aiff->audio_stream_idx)
         avio_write(pb, pkt->data, pkt->size);
     else {
-        if (s->streams[pkt->stream_index]->codecpar->codec_type != AVMEDIA_TYPE_VIDEO)
-            return 0;
-
         /* warn only once for each stream */
         if (s->streams[pkt->stream_index]->nb_frames == 1) {
             av_log(s, AV_LOG_WARNING, "Got more than one picture in stream %d,"