Commit 3d07e0ab authored by Michael Niedermayer's avatar Michael Niedermayer

h264: return the consumed amountg in case of Q264

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 22796042
...@@ -4113,7 +4113,7 @@ not_extra: ...@@ -4113,7 +4113,7 @@ not_extra:
if(!(s->flags2 & CODEC_FLAG2_CHUNKS) && !s->current_picture_ptr){ if(!(s->flags2 & CODEC_FLAG2_CHUNKS) && !s->current_picture_ptr){
if (avctx->skip_frame >= AVDISCARD_NONREF || if (avctx->skip_frame >= AVDISCARD_NONREF ||
buf_size >= 4 && !memcmp("Q264", buf, 4)) buf_size >= 4 && !memcmp("Q264", buf, 4))
return 0; return buf_size;
av_log(avctx, AV_LOG_ERROR, "no frame!\n"); av_log(avctx, AV_LOG_ERROR, "no frame!\n");
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment