[FFmpeg-devel] [PATCH] make sure initialization happens even after goto fires

Erik Hovland erik
Thu Jul 17 18:08:40 CEST 2008

The goto in ff_h264_find_frame_end() is inside an else clause. The
initialization for v happens in the if clause elsewhere. That means that
it is possible for the goto to fire without the initialization of v
happening. Normally this isn't a problem. But gcc recognizes this and
throws an internal parse warning. It then has to go through a special
code branch to take care of this. If the initialization of v always
happens before either clause this does not happen. The attached patch
does just that.


Erik Hovland
mail: erik at hovland.org
web: http://hovland.org/
PGP/GPG public key available on request
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-branch-past-init.patch
Type: text/x-diff
Size: 984 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080717/26a417e6/attachment.patch>

More information about the ffmpeg-devel mailing list