Mercurial > libavcodec.hg
changeset 9856:ff2358195bc7 libavcodec
print error when dv frame profile cannot be found
author | bcoudurier |
---|---|
date | Sun, 14 Jun 2009 22:41:30 +0000 |
parents | 756ac43c7fd9 |
children | 964d08f7b46f |
files | dv.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dv.c Sun Jun 14 22:34:28 2009 +0000 +++ b/dv.c Sun Jun 14 22:41:30 2009 +0000 @@ -1120,8 +1120,10 @@ 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);