---
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
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel