Revision bd9430db
libavcodec/crystalhd.c | ||
---|---|---|
796 | 796 |
|
797 | 797 |
if (priv->parser) { |
798 | 798 |
uint8_t *pout; |
799 |
int psize = len; |
|
799 |
int psize; |
|
800 |
const uint8_t *in_data = avpkt->data; |
|
801 |
int in_len = len; |
|
800 | 802 |
H264Context *h = priv->parser->priv_data; |
801 | 803 |
|
802 |
while (psize) |
|
803 |
ret = av_parser_parse2(priv->parser, avctx, &pout, &psize, |
|
804 |
avpkt->data, len, avctx->pkt->pts, |
|
805 |
avctx->pkt->dts, len - psize); |
|
804 |
while (in_len) { |
|
805 |
int index; |
|
806 |
index = av_parser_parse2(priv->parser, avctx, &pout, &psize, |
|
807 |
in_data, in_len, avctx->pkt->pts, |
|
808 |
avctx->pkt->dts, 0); |
|
809 |
in_data += index; |
|
810 |
in_len -= index; |
|
811 |
} |
|
806 | 812 |
av_log(avctx, AV_LOG_VERBOSE, |
807 | 813 |
"CrystalHD: parser picture type %d\n", |
808 | 814 |
h->s.picture_structure); |
Also available in: Unified diff