h264: move the block starting a new field out of slice_header_parse()
authorAnton Khirnov <anton@khirnov.net>
Tue, 17 May 2016 12:51:01 +0000 (14:51 +0200)
committerAnton Khirnov <anton@khirnov.net>
Tue, 21 Jun 2016 09:08:03 +0000 (11:08 +0200)
commit8d36932c8d33f93ce1afdd5c1f402e7b6655d5ae
tree1dcac4e0ac5f6a10cfdaf4bb8d896d4a4e8a1045
parentb25cd7540e7cba9868edc13817c0ce1ddef90ffc
h264: move the block starting a new field out of slice_header_parse()

There is no bitstream parsing in that block and messing with
decoder-global state is not something that belongs into header parsing.

Nothing else in this function depends on the value of current_slice,
except for two validity checks. Those checks are also moved out of
slice_header_parse().
libavcodec/h264_slice.c