diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-20 12:24:54 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-21 00:50:47 +0100 |
commit | 230bef0a89eded951dacc394926d6c9761f3ccba (patch) | |
tree | acbbc28e48819666b4fb07ce9b75e9d4dc8c8a6a /ffplay.c | |
parent | 9eca649a92e06780044c8f77cdf5746561bba428 (diff) | |
download | ffmpeg-230bef0a89eded951dacc394926d6c9761f3ccba.tar.gz |
ffplay: fix handling of resolution changes with h264-mt
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1821,11 +1821,11 @@ static int video_thread(void *arg) continue; #if CONFIG_AVFILTER - if ( last_w != is->video_st->codec->width - || last_h != is->video_st->codec->height - || last_format != is->video_st->codec->pix_fmt) { + if ( last_w != frame->width + || last_h != frame->height + || last_format != frame->format) { av_log(NULL, AV_LOG_INFO, "Frame changed from size:%dx%d to size:%dx%d\n", - last_w, last_h, is->video_st->codec->width, is->video_st->codec->height); + last_w, last_h, frame->width, frame->height); avfilter_graph_free(&graph); graph = avfilter_graph_alloc(); if ((ret = configure_video_filters(graph, is, vfilters)) < 0) { @@ -1838,9 +1838,9 @@ static int video_thread(void *arg) } filt_in = is->in_video_filter; filt_out = is->out_video_filter; - last_w = is->video_st->codec->width; - last_h = is->video_st->codec->height; - last_format = is->video_st->codec->pix_fmt; + last_w = frame->width; + last_h = frame->height; + last_format = frame->format; } frame->pts = pts_int; |