You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
@@ -210,9 +210,6 @@ static int aiff_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
if (pkt->stream_index == aiff->audio_stream_idx)
|
if (pkt->stream_index == aiff->audio_stream_idx)
|
||||||
avio_write(pb, pkt->data, pkt->size);
|
avio_write(pb, pkt->data, pkt->size);
|
||||||
else {
|
else {
|
||||||
if (s->streams[pkt->stream_index]->codecpar->codec_type != AVMEDIA_TYPE_VIDEO)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
/* warn only once for each stream */
|
/* warn only once for each stream */
|
||||||
if (s->streams[pkt->stream_index]->nb_frames == 1) {
|
if (s->streams[pkt->stream_index]->nb_frames == 1) {
|
||||||
av_log(s, AV_LOG_WARNING, "Got more than one picture in stream %d,"
|
av_log(s, AV_LOG_WARNING, "Got more than one picture in stream %d,"
|
||||||
|
Reference in New Issue
Block a user