We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad1fafb commit 2715c7dCopy full SHA for 2715c7d
src/bflib_fmvids.cpp
@@ -296,7 +296,9 @@ struct movie_t {
296
setup_video();
297
make_packet();
298
make_frame();
299
- make_resampler();
+ if (m_audio_context) {
300
+ make_resampler();
301
+ }
302
m_time_base = m_format_context->streams[m_video_index]->time_base;
303
}
304
@@ -600,7 +602,7 @@ struct movie_t {
600
602
601
603
void play() {
604
while (read_frame()) {
- if (m_packet->stream_index == m_audio_index) {
605
+ if (m_packet->stream_index == m_audio_index && m_audio_context) {
606
if (!decode_audio()) {
607
break;
608
@@ -610,7 +612,9 @@ struct movie_t {
610
612
611
613
614
- flush_audio();
615
616
+ flush_audio();
617
618
flush_video();
619
620
};
0 commit comments