comparison h264.c @ 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 fc51a6ffa64f
children ecaf5226e9b0
comparison
equal deleted inserted replaced
6045:6abc2418601e 6046:a5f184563b8c
3847 default_ref_list_done = 1; 3847 default_ref_list_done = 1;
3848 } 3848 }
3849 h->slice_type= slice_type; 3849 h->slice_type= slice_type;
3850 3850
3851 s->pict_type= h->slice_type; // to make a few old func happy, it's wrong though 3851 s->pict_type= h->slice_type; // to make a few old func happy, it's wrong though
3852 if (s->pict_type == B_TYPE && s->last_picture_ptr == NULL) { 3852 if (s->pict_type == B_TYPE && s0->last_picture_ptr == NULL) {
3853 av_log(h->s.avctx, AV_LOG_ERROR, 3853 av_log(h->s.avctx, AV_LOG_ERROR,
3854 "B picture before any references, skipping\n"); 3854 "B picture before any references, skipping\n");
3855 return -1; 3855 return -1;
3856 } 3856 }
3857 3857