h264: eliminate ff_h264_set_parameter_from_sps()
authorAnton Khirnov <anton@khirnov.net>
Mon, 6 Apr 2015 18:33:58 +0000 (20:33 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 29 Apr 2015 03:52:57 +0000 (05:52 +0200)
commitee62b364be0c30cba83b5ff10a3ca8c3e866ade6
treedbffed438d55e49d723eed17ae3a0b236bfdc03c
parent54986d6db9116ef9704b1ce8414ffdb7f1ca127f
h264: eliminate ff_h264_set_parameter_from_sps()

That function currently does two things -- reinitializing the DSP
contexts and setting low_delay based on the SPS values.

The former more appropriately belongs in h264_slice_header_init(), while
the latter only really makes sense in decode_slice_header().

The third call to ff_h264_set_parameter_from_sps(), done immediately
after parsing a new SPS, appears to serve no useful purpose, so it is
just dropped.

Also, drop now unneeded H264Context.cur_chroma_format_idc.
libavcodec/h264.c
libavcodec/h264.h
libavcodec/h264_slice.c