int force_refresh;
int paused;
int last_paused;
+ int que_attachments_req;
int seek_req;
int seek_flags;
int64_t seek_pos;
env = SDL_getenv("SDL_AUDIO_CHANNELS");
if (env) {
- wanted_nb_channels = SDL_atoi(env);
+ wanted_nb_channels = atoi(env);
wanted_channel_layout = av_get_default_channel_layout(wanted_nb_channels);
}
if (!wanted_channel_layout || wanted_nb_channels != av_get_channel_layout_nb_channels(wanted_channel_layout)) {
is->seek_req = 0;
eof = 0;
}
+ if (is->que_attachments_req) {
+ avformat_queue_attached_pictures(ic);
+ is->que_attachments_req = 0;
+ }
/* if the queue are full, no need to read more */
if (!infinite_buffer &&
the_end:
stream_component_close(is, old_index);
stream_component_open(is, stream_index);
+ if (codec_type == AVMEDIA_TYPE_VIDEO)
+ is->que_attachments_req = 1;
}
show_help_children(avformat_get_class(), AV_OPT_FLAG_DECODING_PARAM);
#if !CONFIG_AVFILTER
show_help_children(sws_get_class(), AV_OPT_FLAG_ENCODING_PARAM);
+#else
+ show_help_children(avfilter_get_class(), AV_OPT_FLAG_FILTERING_PARAM);
#endif
printf("\nWhile playing:\n"
"q, ESC quit\n"