targaenc: Move size check to initialization function
authorVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 27 Jun 2016 00:08:53 +0000 (20:08 -0400)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 29 Jun 2016 19:25:42 +0000 (15:25 -0400)
commitd8f3b0fb584677d4882e3a2d7c28f8b15c7319f5
tree91eb4ff70667575274abe1237709b2ebd731e0ed
parenteeb6849cedac099d41feb482da581f4059c63ca7
targaenc: Move size check to initialization function

In case of bogus input, fail early at codec initialization, rather than
at the encode function.
libavcodec/targaenc.c