@@ -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;