2019-03-06 13:40 GMT+01:00, qw <applemax82 at 163.com>: > I'm reading ffmpeg source code. where is the logic of > calculate output frame's pts in h264 decoder? It's in libavcodec/h264_parser.c and uses information from libavcodec/h264_sei.c and libavcodec/h264_ps.c. Carl Eugen