avvidec: Report the latency once we're fully configured
authorEdward Hervey <edward@centricular.com>
Thu, 12 May 2016 09:09:13 +0000 (11:09 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 13 May 2016 07:52:29 +0000 (09:52 +0200)
commit878d32ad38751222c6d731706f8b3cc8930c9d1c
tree497ada7a37a2b916b20f77eb02683c3e097ce8c1
parent445a301844850501b6d73a6ca4a2bf7a3daef55e
avvidec: Report the latency once we're fully configured

Several decoders will only be able to report a real latency (has_b_frames)
once they're actually initialized (i.e. when they return their first frame).

Doing it earlier (in set_format) doesn't guarantee that the AVCodecContext
has_b_frames has been properly initialized.

https://bugzilla.gnome.org/show_bug.cgi?id=766362
ext/libav/gstavviddec.c