Browse Source

print error when dv frame profile cannot be found

Originally committed as revision 19193 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Baptiste Coudurier 16 years ago
parent
commit
2c608fed3a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/dv.c

+ 3
- 1
libavcodec/dv.c View File

@@ -1120,8 +1120,10 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
DVVideoContext *s = avctx->priv_data;

s->sys = dv_frame_profile(s->sys, buf, buf_size);
if (!s->sys || buf_size < s->sys->frame_size || dv_init_dynamic_tables(s->sys))
if (!s->sys || buf_size < s->sys->frame_size || dv_init_dynamic_tables(s->sys)) {
av_log(avctx, AV_LOG_ERROR, "could not find dv frame profile\n");
return -1; /* NOTE: we only accept several full frames */
}

if (s->picture.data[0])
avctx->release_buffer(avctx, &s->picture);


Loading…
Cancel
Save