Commit 324498f8 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a65f965c'

* commit 'a65f965c':
  mpegvideo: Do REBASE_PICTURE with byte pointers
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents ed341549 a65f965c
......@@ -726,7 +726,7 @@ typedef struct MpegEncContext {
#define REBASE_PICTURE(pic, new_ctx, old_ctx) (pic ? \
(pic >= old_ctx->picture && pic < old_ctx->picture+old_ctx->picture_count ?\
&new_ctx->picture[pic - old_ctx->picture] : pic - (Picture*)old_ctx + (Picture*)new_ctx)\
&new_ctx->picture[pic - old_ctx->picture] : (Picture*) ((uint8_t*)pic - (uint8_t*)old_ctx + (uint8_t*)new_ctx))\
: NULL)
/* mpegvideo_enc common options */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment