summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorReinhard Nissl <rnissl@gmx.de>2007-12-19 23:03:52 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2007-12-19 23:03:52 +0000
commit8293fea57e74fcea276b48b3e22905d2dbb7f68d (patch)
tree8a93354f680f3a10e84d7c731cd13e4b6265aca3 /libavcodec/h264.c
parentb075e5205915a5ffcbcb5452b8586c11351f0758 (diff)
Fix problem with multithreaded decoding, introduced by r11214.
Patch by Reinhard Nissl: rnissl gmx de Originally committed as revision 11275 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 263a66d68e..66efce07ee 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3849,7 +3849,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
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;