Mercurial > libavcodec.hg
comparison dv.c @ 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 | beb616cf1885 |
comparison
equal
deleted
inserted
replaced
9855:756ac43c7fd9 | 9856:ff2358195bc7 |
---|---|
1118 const uint8_t *buf = avpkt->data; | 1118 const uint8_t *buf = avpkt->data; |
1119 int buf_size = avpkt->size; | 1119 int buf_size = avpkt->size; |
1120 DVVideoContext *s = avctx->priv_data; | 1120 DVVideoContext *s = avctx->priv_data; |
1121 | 1121 |
1122 s->sys = dv_frame_profile(s->sys, buf, buf_size); | 1122 s->sys = dv_frame_profile(s->sys, buf, buf_size); |
1123 if (!s->sys || buf_size < s->sys->frame_size || dv_init_dynamic_tables(s->sys)) | 1123 if (!s->sys || buf_size < s->sys->frame_size || dv_init_dynamic_tables(s->sys)) { |
1124 av_log(avctx, AV_LOG_ERROR, "could not find dv frame profile\n"); | |
1124 return -1; /* NOTE: we only accept several full frames */ | 1125 return -1; /* NOTE: we only accept several full frames */ |
1126 } | |
1125 | 1127 |
1126 if (s->picture.data[0]) | 1128 if (s->picture.data[0]) |
1127 avctx->release_buffer(avctx, &s->picture); | 1129 avctx->release_buffer(avctx, &s->picture); |
1128 | 1130 |
1129 s->picture.reference = 0; | 1131 s->picture.reference = 0; |