aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg12.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-06-27 12:58:40 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-06-27 12:58:40 +0000
commit8e937a4ad1cf2e188256be4da776d90ec435c884 (patch)
tree839c4f0fd2da96193cb6e925663f7d6a754cf488 /libavcodec/mpeg12.c
parentcb482d251155768a02994eee2b87746898fcf34d (diff)
downloadffmpeg-8e937a4ad1cf2e188256be4da776d90ec435c884.tar.gz
2x100l
Originally committed as revision 1989 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r--libavcodec/mpeg12.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 34cb39bac6..b78ae38511 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2023,14 +2023,14 @@ static int slice_end(AVCodecContext *avctx, AVFrame *pict)
MPV_frame_end(s);
if (s->pict_type == B_TYPE || s->low_delay) {
- *pict= *(AVFrame*)&s->current_picture;
+ *pict= *(AVFrame*)s->current_picture_ptr;
ff_print_debug_info(s, s->current_picture_ptr);
} else {
s->picture_number++;
/* latency of 1 frame for I and P frames */
/* XXX: use another variable than picture_number */
if (s->last_picture_ptr != NULL) {
- *pict= *(AVFrame*)&s->last_picture;
+ *pict= *(AVFrame*)s->last_picture_ptr;
ff_print_debug_info(s, s->last_picture_ptr);
}
}