diff options
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r-- | libhb/decavcodec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index f698dde10..874b77e1c 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -2209,6 +2209,10 @@ static void decodeAudio(hb_audio_t *audio, hb_work_private_t *pv, uint8_t *data, avp.dts = AV_NOPTS_VALUE; int len = avcodec_decode_audio4(context, pv->frame, &got_frame, &avp); + if (len < 0) + { + ++pv->decode_errors; + } if ((len < 0) || (!got_frame && !(loop_limit--))) { return; @@ -2292,6 +2296,7 @@ static void decodeAudio(hb_audio_t *audio, hb_work_private_t *pv, uint8_t *data, pv->pts_next = duration + pv->pts_next; hb_buffer_list_append(&pv->list, out); } + ++pv->nframes; } } } |