diff options
-rw-r--r-- | libavcodec/error_resilience.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 8baee8d9e3..b7aeebddfc 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -678,6 +678,7 @@ void ff_er_frame_end(MpegEncContext *s){ av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n"); for(i=0; i<2; i++){ + pic->ref_index[i]= av_mallocz(size * sizeof(uint8_t)); pic->motion_val_base[i]= av_mallocz((size+2) * 2 * sizeof(uint16_t)); pic->motion_val[i]= pic->motion_val_base[i]+2; } |