[FFmpeg-cvslog] r22216 - trunk/ffplay.c

Måns Rullgård mans
Fri Mar 5 03:53:40 CET 2010


michael <subversion at mplayerhq.hu> writes:

> Author: michael
> Date: Fri Mar  5 03:20:10 2010
> New Revision: 22216
>
> Log:
> Libavfilter for ffplay support.
> This still needs some minor work here and there but should be already functional.
> Note that the code pathes that are under "not avfilter" ifdefs as well as the
> ifdefs will be droped as soon as all major issues have been det with, aka could
> be real soon or not.

This is broken, it plays video as fast as possible.

It also doesn't build with libavfilter disabled, probably typo, see
below.

> +    for(;;) {
> +#if !CONFIG_AVFILTER
> +        AVPacket pkt;
> +#endif
> +        while (is->paused && !is->videoq.abort_request)
> +            SDL_Delay(10);
> +#if CONFIG_AVFILTER
> +        ret = get_filtered_video_frame(filt_out, frame, &pts_int);
> +#else
> +        ret = get_video_frame(is, frame, &pts_int, &pkt);
> +#endif
> +
> +        if (ret < 0) goto the_end;
> +
> +        if (!ret)
> +            continue;
> +
> +        pts  = pts_int;
> +        pts /= AV_TIME_BASE;
> +
> +#if CONFIG_AVFILTER
> +        ret = output_picture2(is, frame, pts,  -1); /* fixme: unknown pos */
> +#else
> +        ret = output_picture2(is, frame, pts,  pkt->pos);

Should that be pkt.pos?

> +        av_free_packet(&pkt);
> +#endif

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-cvslog mailing list