Browse Source

h264: initialize frame-mt context copies properly

tags/n1.1
Janne Grunau 13 years ago
parent
commit
0eae920c3c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/h264.c

+ 2
- 0
libavcodec/h264.c View File

@@ -1125,6 +1125,8 @@ static int decode_init_thread_copy(AVCodecContext *avctx)
memset(h->sps_buffers, 0, sizeof(h->sps_buffers)); memset(h->sps_buffers, 0, sizeof(h->sps_buffers));
memset(h->pps_buffers, 0, sizeof(h->pps_buffers)); memset(h->pps_buffers, 0, sizeof(h->pps_buffers));


h->s.context_initialized = 0;

return 0; return 0;
} }




Loading…
Cancel
Save