[FFmpeg-devel] [PATCH 1/2] ffmpeg: treat audio streams with no parsed packets like unknown streams
Rodger Combs
rodger.combs at gmail.com
Tue May 2 04:42:17 EEST 2017
---
ffmpeg_opt.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index d1fe8742ff..5ed29d717e 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -2255,6 +2255,14 @@ loop_end:
if(o-> data_disable && ist->st->codecpar->codec_type == AVMEDIA_TYPE_DATA)
continue;
+ if (ignore_unknown_streams &&
+ ist->st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO &&
+ ist->st->codecpar->sample_rate <= 0) {
+ av_log(NULL, AV_LOG_WARNING, "Skipping stream #%d:%d - not parsed.\n",
+ map->file_index, map->stream_index);
+ continue;
+ }
+
ost = NULL;
switch (ist->st->codecpar->codec_type) {
case AVMEDIA_TYPE_VIDEO: ost = new_video_stream (o, oc, src_idx); break;
--
2.11.1
More information about the ffmpeg-devel
mailing list