Mercurial > libavcodec.hg
comparison h263.c @ 2886:5576a9349ab6 libavcodec
set pts for h.263 decoding
author | michael |
---|---|
date | Mon, 19 Sep 2005 12:03:51 +0000 |
parents | 5dfb90019814 |
children | fde28cb7e3d5 |
comparison
equal
deleted
inserted
replaced
2885:5dfb90019814 | 2886:5576a9349ab6 |
---|---|
5001 } | 5001 } |
5002 /* temporal reference */ | 5002 /* temporal reference */ |
5003 i = get_bits(&s->gb, 8); /* picture timestamp */ | 5003 i = get_bits(&s->gb, 8); /* picture timestamp */ |
5004 if( (s->picture_number&~0xFF)+i < s->picture_number) | 5004 if( (s->picture_number&~0xFF)+i < s->picture_number) |
5005 i+= 256; | 5005 i+= 256; |
5006 s->current_picture_ptr->pts= | |
5006 s->picture_number= (s->picture_number&~0xFF) + i; | 5007 s->picture_number= (s->picture_number&~0xFF) + i; |
5007 | 5008 |
5008 /* PTYPE starts here */ | 5009 /* PTYPE starts here */ |
5009 if (get_bits1(&s->gb) != 1) { | 5010 if (get_bits1(&s->gb) != 1) { |
5010 /* marker */ | 5011 /* marker */ |