]> git.sesse.net Git - mlt/blobdiff - src/modules/avformat/producer_avformat.c
fix playing audio with 0 channels
[mlt] / src / modules / avformat / producer_avformat.c
index 04b1ab6aa13bc7096a79448630982f5449c30b39..273454019aed26170378f0001c484d3499417667 100644 (file)
@@ -366,6 +366,8 @@ static mlt_properties find_default_streams( producer_avformat self )
 #endif
                                break;
                        case CODEC_TYPE_AUDIO:
+                               if ( !codec_context->channels )
+                                       break;
                                // Use first audio stream
                                if ( self->audio_index < 0 )
                                        self->audio_index = i;