diff options
author | Mike Melanson <mike@multimedia.cx> | 2005-07-18 16:43:14 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2005-07-18 16:43:14 +0000 |
commit | a2cfc4d630112134b603444608b5d1bdbf24992f (patch) | |
tree | f5938b9a592d0b5b762a69a6fde8da97b097826d /vhook/watermark.c | |
parent | 8d931070fc6248ba2d7c6b55d951be36532e90cf (diff) | |
download | ffmpeg-a2cfc4d630112134b603444608b5d1bdbf24992f.tar.gz |
this file got skipped during the API update
Originally committed as revision 4455 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'vhook/watermark.c')
-rw-r--r-- | vhook/watermark.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vhook/watermark.c b/vhook/watermark.c index 1d015405b8..17323ae900 100644 --- a/vhook/watermark.c +++ b/vhook/watermark.c @@ -307,7 +307,7 @@ int get_watermark_picture(ContextInfo *ci, int cleanup) */ ci->videoStream=-1; for(ci->i = 0; ci->i < ci->pFormatCtx->nb_streams; ci->i++) - if(ci->pFormatCtx->streams[ci->i]->codec.codec_type==CODEC_TYPE_VIDEO) + if(ci->pFormatCtx->streams[ci->i]->codec->codec_type==CODEC_TYPE_VIDEO) { ci->videoStream = ci->i; break; @@ -318,11 +318,11 @@ int get_watermark_picture(ContextInfo *ci, int cleanup) } ci->st = ci->pFormatCtx->streams[ci->videoStream]; - ci->x_size = ci->st->codec.width; - ci->y_size = ci->st->codec.height; + ci->x_size = ci->st->codec->width; + ci->y_size = ci->st->codec->height; // Get a pointer to the codec context for the video stream - ci->pCodecCtx = &ci->pFormatCtx->streams[ci->videoStream]->codec; + ci->pCodecCtx = ci->pFormatCtx->streams[ci->videoStream]->codec; /* |