summaryrefslogtreecommitdiffstats
path: root/libavcodec/dv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-01-23 18:09:06 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-01-23 18:09:06 +0000
commit934982c4ace1a3d5d627b518782ed092a456c49e (patch)
tree2710f7ff4b0238136300d02da7baf234ed48cc01 /libavcodec/dv.c
parent884182b383ed8b70a67634dc7f91395c402b58d7 (diff)
downloadffmpeg-streaming-934982c4ace1a3d5d627b518782ed092a456c49e.zip
ffmpeg-streaming-934982c4ace1a3d5d627b518782ed092a456c49e.tar.gz
avoid buf_size == 0 checks in every decoder
Originally committed as revision 3872 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r--libavcodec/dv.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index f548bff..01e1ce6 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -888,10 +888,6 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
{
DVVideoContext *s = avctx->priv_data;
- /* special case for last picture */
- if(buf_size==0)
- return 0;
-
s->sys = dv_frame_profile(buf);
if (!s->sys || buf_size < s->sys->frame_size)
return -1; /* NOTE: we only accept several full frames */
OpenPOWER on IntegriCloud