ffmpeg: use parse_number_and_die() when it makes sense
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 11 Apr 2011 11:16:07 +0000 (13:16 +0200)
committerAnton Khirnov <anton@khirnov.net>
Fri, 13 May 2011 05:38:54 +0000 (07:38 +0200)
commitdbe94539469b6d5113b37ea45eaf69ddbe34154e
treed5d7e371e0a9cce57b5cea4994d91421adfcdbc2
parent8fb566fdf839206584b1dec7da2eb9c9540108fa
ffmpeg: use parse_number_and_die() when it makes sense

Prefer parse_number_or_die() over atoi()/atol() parsing for the options:
-pass, -top, -vc, and -qscale.

Improve input validation.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
ffmpeg.c