[FFmpeg-devel] [PATCH] Fixed presentation_delayed bug in compute_pkt_fields function

zhihang wang zhihang.wang at gmail.com
Wed Jun 1 03:36:24 CEST 2011


>
> what is it that you are trying to accomplish with this change?
> some bugfix?
> if so can you elaborate on the bug?
>
> [...]
>
When the decoded frame is an I frame with pts and dts,  and there are b
frames in the input video sequence, the following lines will run in the
function compute_pkt_fields.

    if(delay==1 && pkt->dts == pkt->pts && pkt->dts != AV_NOPTS_VALUE &&
presentation_delayed){
        av_log(s, AV_LOG_DEBUG, "invalid dts/pts combination\n");
        pkt->dts= pkt->pts= AV_NOPTS_VALUE;
    }


it is obviously that it is not right.  temporally I can't upload the
corresponding video sequence because of the network problem. But it can just
be judged by reading the code.

-------------------------------------------
Best Regards
zhihang wang


More information about the ffmpeg-devel mailing list