h264: check SPS entries directly to detect pixel format changes
authorJanne Grunau <janne-libav@jannau.net>
Wed, 2 Jan 2013 01:28:34 +0000 (02:28 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 2 Jan 2013 01:28:57 +0000 (02:28 +0100)
commite9fd51b0d6dc65bdfcd702531c400ae9ee50a67d
tree9c9374a0911e6d2dfc546910011733e6d53356db
parent341e40f1e1eeba1a2952c26363630596193e887b
h264: check SPS entries directly to detect pixel format changes

Comparing AVCodecContext.pix_fmt against the get_pixel_format() return
value has the side effect of calling the get_format() callback on each
slice. Users of the callback will probably handle hardware accelerator
initialization in the callback.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c