avidec: Return correct error code from avi_sync() in case of IO error.

Found-by: Tanami, Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/2/head
Michael Niedermayer 13 years ago
parent 7d7e3023d9
commit 742d218bf1
  1. 2
      libavformat/avidec.c

@ -1001,6 +1001,8 @@ start_sync:
}
}
if(pb->error)
return pb->error;
return AVERROR_EOF;
}

Loading…
Cancel
Save