summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-06-14 22:41:30 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-06-14 22:41:30 +0000
commit2c608fed3a7bee865bc5bce31de71fa186d5bc0a (patch)
treeef223faeba124e9973abd2fefd4e4c443945c57b /libavcodec
parentd509c743b78da198af385fea362b632292cd00ad (diff)
print error when dv frame profile cannot be found
Originally committed as revision 19193 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 7bc04789f9..96d8c39489 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -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);