OSDN Git Service

mmaldec: fix pkt_dts determination
authorwm4 <nfxjfg@googlemail.com>
Tue, 8 Sep 2015 17:42:26 +0000 (19:42 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 12 Sep 2015 10:27:34 +0000 (12:27 +0200)
commit99404597201911de90cff2ef85f2d44176d39147
tree0acd1a8bf5c6e82478a25cc45e223b93ddcc8e8c
parent87a051f97633010f71dfc1d23d806856499bf231
mmaldec: fix pkt_dts determination

This also drops setting the frame->pts field. This is usually not set by
decoders, so this would be an inconsistency that's at worst a danger to
the API user.

It appears the buffer->dts field is normally not set by the MMAL
decoder, so don't use it. If it's ever going to be set by MMAL, we
don't know whether the value will be what we want.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/mmaldec.c