changeset 6046:a5f184563b8c libavcodec

Fix problem with multithreaded decoding, introduced by r11214. Patch by Reinhard Nissl: rnissl gmx de
author cehoyos
date Wed, 19 Dec 2007 23:03:52 +0000
parents 6abc2418601e
children 2f9c17454842
files h264.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Wed Dec 19 08:14:21 2007 +0000
+++ b/h264.c	Wed Dec 19 23:03:52 2007 +0000
@@ -3849,7 +3849,7 @@
     h->slice_type= slice_type;
 
     s->pict_type= h->slice_type; // to make a few old func happy, it's wrong though
-    if (s->pict_type == B_TYPE && s->last_picture_ptr == NULL) {
+    if (s->pict_type == B_TYPE && s0->last_picture_ptr == NULL) {
         av_log(h->s.avctx, AV_LOG_ERROR,
                "B picture before any references, skipping\n");
         return -1;