aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorJuanjo <pulento@users.sourceforge.net>2001-11-19 02:13:14 +0000
committerJuanjo <pulento@users.sourceforge.net>2001-11-19 02:13:14 +0000
commit644d98a4f2f980bf95174238f1ab962dc1f692a0 (patch)
treec256c38a729e2d62a0b79a09ec8f3b159a34f920 /libavcodec/h263dec.c
parent652cb0f57a77ad5546ba42aebeced59e00f003df (diff)
downloadffmpeg-644d98a4f2f980bf95174238f1ab962dc1f692a0.tar.gz
- Preliminary RTP friendly mode for H.263.
- GOB headers for H.263 coding on RTP mode. - Improved GOB header detection for H.263 decoder. Originally committed as revision 222 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index d56bc8252b..be76e3030f 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -140,6 +140,12 @@ static int h263_decode_frame(AVCodecContext *avctx,
/* decode each macroblock */
for(s->mb_y=0; s->mb_y < s->mb_height; s->mb_y++) {
+ /* Check for GOB headers on H.263 */
+ /* FIXME: In the future H.263+ will have intra prediction */
+ /* and we are gonna need another way to detect MPEG4 */
+ if (s->mb_y && !s->h263_pred) {
+ s->first_gob_line = h263_decode_gob_header(s);
+ }
for(s->mb_x=0; s->mb_x < s->mb_width; s->mb_x++) {
#ifdef DEBUG
printf("**mb x=%d y=%d\n", s->mb_x, s->mb_y);