]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264.c
lavf: Explicitly convert types at function pointer assignment
[ffmpeg] / libavcodec / h264.c
index be0dca4959295e4ca0d0cd3980aeb175dc532835..de192501fa455a2ee6efc24539a18f37d14f6ee3 100644 (file)
@@ -685,6 +685,11 @@ static int decode_init_thread_copy(AVCodecContext *avctx)
     memset(h->sps_buffers, 0, sizeof(h->sps_buffers));
     memset(h->pps_buffers, 0, sizeof(h->pps_buffers));
 
+    h->avctx               = avctx;
+    h->rbsp_buffer[0]      = NULL;
+    h->rbsp_buffer[1]      = NULL;
+    h->rbsp_buffer_size[0] = 0;
+    h->rbsp_buffer_size[1] = 0;
     h->context_initialized = 0;
 
     return 0;