h264: check SPS entries directly to detect pixel format changes
authorJanne Grunau <janne-libav@jannau.net>
Sat, 29 Dec 2012 18:30:12 +0000 (19:30 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Thu, 3 Jan 2013 10:09:00 +0000 (11:09 +0100)
commit9ac44ad9d06f504aa7e53e0eb7480a40dce5d376
tree91c0a8a8307ae4cd9d6d8562094256074a815fae
parent60e60d99ad86300c4af535207ac6edd5049d2665
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.
libavcodec/h264.c