this file got skipped during the API update

Originally committed as revision 4455 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Mike Melanson 2005-07-18 16:43:14 +00:00
parent 8d931070fc
commit a2cfc4d630

View File

@ -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;
/*