[FFmpeg-devel] [PATCH] ffplay: fix handling of resolution changes with h264-mt
Michael Niedermayer
michaelni at gmx.at
Fri Dec 21 00:49:29 CET 2012
On Thu, Dec 20, 2012 at 11:23:40PM +0100, Marton Balint wrote:
>
> On Thu, 20 Dec 2012, Michael Niedermayer wrote:
>
> >Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> >---
> >ffplay.c | 14 +++++++-------
> >1 file changed, 7 insertions(+), 7 deletions(-)
> >
> >diff --git a/ffplay.c b/ffplay.c
> >index d5985f7..83f46f5 100644
> >--- a/ffplay.c
> >+++ b/ffplay.c
> >@@ -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;
> >--
>
> LGTM, thanks.
applied
thanks to all
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121221/45a450bc/attachment.asc>
More information about the ffmpeg-devel
mailing list