]> git.sesse.net Git - ffmpeg/commit
avformat/mov: Read attached pics directly into st->attached_pic
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 14 Jun 2020 07:39:17 +0000 (09:39 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 22 Jun 2020 11:10:58 +0000 (13:10 +0200)
commit88dc77e243c486f50f60da981ac328d502791111
treec8bb287d6020d5583ac833f2a47cccbe4c6283f9
parentddd6274944a6bed1bf3bdb66893e52792e2f83f7
avformat/mov: Read attached pics directly into st->attached_pic

Given that av_get_packet returns a blank packet on error, the only
difference to the current approach (that uses intermediate AVPackets on
the stack) is that st->attached_pic will be properly initialized on error
(i.e. the timestamps are AV_NOPTS_VALUE) whereas right now st->attached_pic
is only zeroed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/mov.c