examples/demuxing_decoding: use properties from frame instead of video_dec_ctx
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 14 Jun 2015 18:34:16 +0000 (20:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 18 Jun 2015 20:09:01 +0000 (22:09 +0200)
commit8a24ccfee3841d5b2069371b78921e7e6c8289dc
tree999cf5c3a2cc4546cb112d5e7772970b666f3404
parent3ba55ea4aec2ce6c179017e12a933e20a20a14d1
examples/demuxing_decoding: use properties from frame instead of video_dec_ctx

This is more robust.

And only check if there is actually a frame returned.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit dd6c8575dbc8d3ff5dc2ffacb5028c253066ff78)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
doc/examples/demuxing_decoding.c