diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-24 17:07:51 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-24 17:15:18 +0200 |
commit | 404fe63e23433aa559cee5366cb26f78b425e7e5 (patch) | |
tree | 86eb7880b36ebf79992c2081995e61a543b5e705 /libavcodec/h263.h | |
parent | b71dc297296a8a659fa7299acb6ebaa95a885ffd (diff) | |
download | ffmpeg-streaming-404fe63e23433aa559cee5366cb26f78b425e7e5.zip ffmpeg-streaming-404fe63e23433aa559cee5366cb26f78b425e7e5.tar.gz |
avcodec: Pass PutBitContext into ff_h263_encode_motion() instead of MpegEncContext
This avoids the need to dereference MpegEncContext->pb if it is
already available outside ff_h263_encode_motion()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h263.h')
-rw-r--r-- | libavcodec/h263.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/h263.h b/libavcodec/h263.h index 8b2e016..1f954cd 100644 --- a/libavcodec/h263.h +++ b/libavcodec/h263.h @@ -123,7 +123,7 @@ int av_const h263_get_picture_format(int width, int height); void ff_clean_h263_qscales(MpegEncContext *s); int ff_h263_resync(MpegEncContext *s); -void ff_h263_encode_motion(MpegEncContext * s, int val, int f_code); +void ff_h263_encode_motion(PutBitContext *pb, int val, int f_code); static inline int h263_get_motion_length(int val, int f_code){ @@ -149,8 +149,8 @@ static inline void ff_h263_encode_motion_vector(MpegEncContext * s, int x, int y h263_get_motion_length(x, f_code) +h263_get_motion_length(y, f_code)); }else{ - ff_h263_encode_motion(s, x, f_code); - ff_h263_encode_motion(s, y, f_code); + ff_h263_encode_motion(&s->pb, x, f_code); + ff_h263_encode_motion(&s->pb, y, f_code); } } |