[FFmpeg-devel] [PATCH] avcodec/hevcdec: hevc_await_progress: declare |y| only if used.

Michael Niedermayer michael at niedermayer.cc
Fri Jul 21 01:16:16 EEST 2017


On Thu, Jul 20, 2017 at 11:39:11AM -0700, Wan-Teh Chang wrote:
> hevc_await_progress() uses the variable |y| only inside the "if" block.
> So |y| only needs to be declared and initialized in that block.
> 
> Signed-off-by: Wan-Teh Chang <wtc at google.com>
> ---
>  libavcodec/hevcdec.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

will apply

thanks

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

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170721/ae926707/attachment.sig>


More information about the ffmpeg-devel mailing list