cpia: move reget_buffer after header check
authorStephan Hilb <stephan@ecshi.net>
Sat, 1 Sep 2012 08:12:33 +0000 (10:12 +0200)
committerStephan Hilb <stephan@ecshi.net>
Sat, 1 Sep 2012 08:12:33 +0000 (10:12 +0200)
commit296140ebfb7242211852f7736f72dc7f05f0c458
tree382b526eb031b0cd74cc18b6393444e115297178
parent54ca7e39dae120fefe96d30e965a304b63a1b491
cpia: move reget_buffer after header check

If the header is invalid, there is no need to get at buffer.
Do it after the header has been checked.
Suggested by Reimar Döffinger
libavcodec/cpia.c