diff options
author | Juanjo <pulento@users.sourceforge.net> | 2002-02-09 16:59:56 +0000 |
---|---|---|
committer | Juanjo <pulento@users.sourceforge.net> | 2002-02-09 16:59:56 +0000 |
commit | 81401c1fbc79c3350e91ef15dd25b50afa9e5d4d (patch) | |
tree | 9ee7c4e78f6307aa90006d2f1b07a240ece70cdf /libavcodec/h263dec.c | |
parent | 3cb32e3d1fb6c058bf6b3ce45d5e758a4608c847 (diff) | |
download | ffmpeg-81401c1fbc79c3350e91ef15dd25b50afa9e5d4d.tar.gz |
- Fixes on RTP and GOB headers for H.263.
- RTP callback system implemented for H.263/H.263+.
- Bug fix on DC coefficients of H.263.
- H.263 decoder now returns PTS on picture number.
Originally committed as revision 292 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index aadeb8bd68..ce2c12d165 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -225,6 +225,11 @@ static int h263_decode_frame(AVCodecContext *avctx, pict->linesize[2] = s->linesize / 2; avctx->quality = s->qscale; + + /* Return the Picture timestamp as the frame number */ + /* we substract 1 because it is added on utils.c */ + avctx->frame_number = s->picture_number - 1; + *data_size = sizeof(AVPicture); return buf_size; } |