[FFmpeg-devel] [PATCH] h264: remove useless assignment.

Michael Niedermayer michaelni at gmx.at
Fri Aug 1 12:35:40 CEST 2014


On Thu, Jul 31, 2014 at 02:32:02PM +0200, Benoit Fouet wrote:
> source index, as well as dest one, is unconditionnaly set afterwards,
> before being effectively used.
> ---
>  libavcodec/h264.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/libavcodec/h264.c b/libavcodec/h264.c
> index 10905db..8fa35c7 100644
> --- a/libavcodec/h264.c
> +++ b/libavcodec/h264.c
> @@ -296,7 +296,6 @@ const uint8_t *ff_h264_decode_nal(H264Context *h, const uint8_t *src,
>      // use second escape buffer for inter data
>      bufidx = h->nal_unit_type == NAL_DPC ? 1 : 0;
>  
> -    si = h->rbsp_buffer_size[bufidx];
>      av_fast_padded_malloc(&h->rbsp_buffer[bufidx], &h->rbsp_buffer_size[bufidx], length+MAX_MBPAIR_SIZE);
>      dst = h->rbsp_buffer[bufidx];

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140801/7f00f540/attachment.asc>


More information about the ffmpeg-devel mailing list