diff options
author | kcat <[email protected]> | 2016-07-21 16:42:21 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2016-07-21 16:42:21 -0700 |
commit | 9f2e416bbddc5f17c95135c327c046e0d1612850 (patch) | |
tree | 2eb031a028cbea9f9281319e54d97e462c3797a6 | |
parent | fbba2828cddb5488b12d3f26fe3edb1ee286a20c (diff) | |
parent | 69af50cadb0f4c0f8b9b8b159785bc2a3cae8dc1 (diff) |
Merge pull request #49 from ryanpcmcquen/patch-1
Fix for ffmpeg.
-rw-r--r-- | examples/alffplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/alffplay.c b/examples/alffplay.c index 7feaa5ae..b9acbb8e 100644 --- a/examples/alffplay.c +++ b/examples/alffplay.c @@ -942,7 +942,7 @@ static void update_picture(MovieState *movState, bool *first_update, SDL_Window void *pixels = NULL; int pitch = 0; - if(movState->video.st->codec->pix_fmt == PIX_FMT_YUV420P) + if(movState->video.st->codec->pix_fmt == AV_PIX_FMT_YUV420P) SDL_UpdateYUVTexture(vp->bmp, NULL, frame->data[0], frame->linesize[0], frame->data[1], frame->linesize[1], @@ -960,7 +960,7 @@ static void update_picture(MovieState *movState, bool *first_update, SDL_Window if(!movState->video.swscale_ctx) movState->video.swscale_ctx = sws_getContext( w, h, movState->video.st->codec->pix_fmt, - w, h, PIX_FMT_YUV420P, SWS_X, NULL, NULL, NULL + w, h, AV_PIX_FMT_YUV420P, SWS_X, NULL, NULL, NULL ); /* point pict at the queue */ |