Mercurial > libavcodec.hg
comparison h263dec.c @ 1939:71fe2180024c libavcodec
segfault fix
author | michael |
---|---|
date | Fri, 16 Apr 2004 01:02:39 +0000 |
parents | f2d134308a70 |
children | b5753525f9a8 |
comparison
equal
deleted
inserted
replaced
1938:e2501e6e7ff7 | 1939:71fe2180024c |
---|---|
714 if(s->pict_type==B_TYPE || s->low_delay){ | 714 if(s->pict_type==B_TYPE || s->low_delay){ |
715 *pict= *(AVFrame*)&s->current_picture; | 715 *pict= *(AVFrame*)&s->current_picture; |
716 ff_print_debug_info(s, pict); | 716 ff_print_debug_info(s, pict); |
717 } else { | 717 } else { |
718 *pict= *(AVFrame*)&s->last_picture; | 718 *pict= *(AVFrame*)&s->last_picture; |
719 ff_print_debug_info(s, pict); | 719 if(pict) |
720 ff_print_debug_info(s, pict); | |
720 } | 721 } |
721 | 722 |
722 /* Return the Picture timestamp as the frame number */ | 723 /* Return the Picture timestamp as the frame number */ |
723 /* we substract 1 because it is added on utils.c */ | 724 /* we substract 1 because it is added on utils.c */ |
724 avctx->frame_number = s->picture_number - 1; | 725 avctx->frame_number = s->picture_number - 1; |