On 2011-12-21 22:50:00 -0800, wl2776 wrote:
> Hi all.
> My application uses its own means to receive and parse RTP stream,
> containing H264 video (parser code, however, is based on the code from
> rtpdec_h264.c).
> Then parsed packets go to the LibAV decoder and decoding result is presented
> on the screen.
> 
> Sometimes I observe image flickering, like too late frames are being
> displayed (humans and cars are jumping back and forth). This usually happens
> after the H264 decoder writes to the debug that it "increases reorder".
> 
> Currently my code looks like the following
> 
> 
> 

just empty space

> The line, surrounded with //!!!!!! is my big problem. AVFrame structure has
> three fields, related to timestamping (plus one deprecated called
> reordered_opaque): pkt_dts, pkt_pts and best_effort_timestamp. 

there is no best_effort_timestamp in AVFrame
 
> Which one should I choose to get correct timestamping?

When the packets you're feeding to the decoder have correct PTSs you
should use pkt_pts.


Janne
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to