summaryrefslogtreecommitdiff
path: root/libavcodec/h263.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-04-17 13:36:21 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-04-17 13:36:21 +0000
commit14e2a9404e25ffd80e84b1b7a152858c63b2d690 (patch)
tree79e76f4c2d3b037977b24ee1ec6e332adcd12fed /libavcodec/h263.c
parent068f2a22db94f9a87a9c5222fc02ea8624bd9e4d (diff)
flv dropable p frame support
Originally committed as revision 3027 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r--libavcodec/h263.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index f156980ab2..8b8ea7c1b0 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -6054,8 +6054,10 @@ int flv_h263_decode_picture_header(MpegEncContext *s)
s->height = height;
s->pict_type = I_TYPE + get_bits(&s->gb, 2);
- if (s->pict_type > P_TYPE)
+ s->dropable= s->pict_type > P_TYPE;
+ if (s->dropable)
s->pict_type = P_TYPE;
+
skip_bits1(&s->gb); /* deblocking flag */
s->chroma_qscale= s->qscale = get_bits(&s->gb, 5);