summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-10 02:01:41 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-18 02:21:19 +0200
commita4869bf029fdb49a9cb6643d37a4cb081d6d443c (patch)
treea57fd3166822d36a9c6c76369fc242c59b916834
parentb0afa10c8cf590907a93f1a6a9c49e73d78c3649 (diff)
avformat/aiffenc: Remove always-false check
write_header() already checks that there are only video tracks besides the one audio track. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavformat/aiffenc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/aiffenc.c b/libavformat/aiffenc.c
index 06e475cddb..1ecdb52ee7 100644
--- a/libavformat/aiffenc.c
+++ b/libavformat/aiffenc.c
@@ -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,"