lavc/imgconvert: fix check on av_image_check_size() return code in avpicture_get_size()
authorStefano Sabatini <stefasab@gmail.com>
Sat, 16 Jun 2012 09:38:50 +0000 (11:38 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Mon, 18 Jun 2012 23:36:30 +0000 (01:36 +0200)
commit18b4404dc35eef67620066e11086048b933c2e4c
tree616cdcfd42e5db5a55e06e54572e5f8584b02356
parent0b2ecf8224cf882033737541cf3bd615dd414625
lavc/imgconvert: fix check on av_image_check_size() return code in avpicture_get_size()

The documentation states that av_image_check_size() will return a
negative value in case of error, while the check is done on ret != 0.

Also return a proper error code rather than -1 in case the check fails.
libavcodec/imgconvert.c