Mercurial > libavcodec.hg
diff h263dec.c @ 1586:3d1d0490e5a6 libavcodec
pts fix and related fixes
author | michael |
---|---|
date | Thu, 30 Oct 2003 16:58:49 +0000 |
parents | dd544554ed42 |
children | 932d306bf1dc |
line wrap: on
line diff
--- a/h263dec.c Thu Oct 30 05:40:58 2003 +0000 +++ b/h263dec.c Thu Oct 30 16:58:49 2003 +0000 @@ -28,17 +28,6 @@ //#define DEBUG //#define PRINT_FRAME_TIME -#ifdef PRINT_FRAME_TIME -static inline long long rdtsc() -{ - long long l; - asm volatile( "rdtsc\n\t" - : "=A" (l) - ); -// printf("%d\n", int(l/1000)); - return l; -} -#endif int ff_h263_decode_init(AVCodecContext *avctx) { @@ -446,6 +435,12 @@ if (MPV_common_init(s) < 0) //we need the idct permutaton for reading a custom matrix return -1; } + + //we need to set current_picture_ptr before reading the header, otherwise we cant store anyting im there + if(s->current_picture_ptr==NULL || s->current_picture_ptr->data[0]){ + int i= ff_find_unused_picture(s, 0); + s->current_picture_ptr= &s->picture[i]; + } /* let's go :-) */ if (s->msmpeg4_version==5) {