On 2014-04-05 03:41:13 +0200, Luca Barbato wrote:
> ---
> libavcodec/h264.c | 422
> +++++++++++++++++++++++++++---------------------------
> 1 file changed, 209 insertions(+), 213 deletions(-)
>
> diff --git a/libavcodec/h264.c b/libavcodec/h264.c
> index 4c432ae..1a04cc1 100644
> --- a/libavcodec/h264.c
> +++ b/libavcodec/h264.c
> @@ -1395,10 +1395,12 @@ static int decode_nal_units(H264Context *h, const
> uint8_t *buf, int buf_size,
> {
> AVCodecContext *const avctx = h->avctx;
> H264Context *hx; ///< thread context
> - int buf_index;
> - unsigned context_count;
> - int next_avc, nal_index;
> - int nals_needed = 0; ///< number of NALs that need decoding before the
> next frame thread starts
> + int next_avc = h->is_avc ? 0 : buf_size;
> + int nal_index = 0;
> + int buf_index = 0;
> + int nals_needed = 0; ///< number of NALs that need decoding before the
> next frame thread starts
> + int context_count = 0;
why are you change the type of context_count?
Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel