comparison utils.c @ 267:e10840e4f773 libavcodec

- Bug fix MPEG-2 decoder to handle "repeat_first_field" (Telecine) - Hack in MPEG-2 demux to cope with buggy VOBs.
author pulento
date Sat, 16 Mar 2002 02:41:00 +0000
parents e1bacfb3f51f
children 9a931fd8d06c
comparison
equal deleted inserted replaced
266:252444e5259b 267:e10840e4f773
111 { 111 {
112 int ret; 112 int ret;
113 113
114 ret = avctx->codec->decode(avctx, picture, got_picture_ptr, 114 ret = avctx->codec->decode(avctx, picture, got_picture_ptr,
115 buf, buf_size); 115 buf, buf_size);
116 avctx->frame_number++; 116 if (*got_picture_ptr)
117 avctx->frame_number++;
117 return ret; 118 return ret;
118 } 119 }
119 120
120 /* decode an audio frame. return -1 if error, otherwise return the 121 /* decode an audio frame. return -1 if error, otherwise return the
121 *number of bytes used. If no frame could be decompressed, 122 *number of bytes used. If no frame could be decompressed,