Permalink
Browse files

Merge pull request #19 from Schebb/master

update deprecated function ( avcodec_alloc_frame, get_buffer, avcodec_default_get_buffer )
  • Loading branch information...
2 parents 6e9db8f + f16f0d0 commit 172ec32899ac67b7ce6007aeefaf09f381e6d596 @chelyaev chelyaev committed Feb 13, 2014
Showing with 11 additions and 11 deletions.
  1. +2 −2 tutorial01.c
  2. +1 −1 tutorial02.c
  3. +1 −1 tutorial03.c
  4. +1 −1 tutorial04.c
  5. +2 −2 tutorial05.c
  6. +2 −2 tutorial06.c
  7. +2 −2 tutorial07.c
View
@@ -102,10 +102,10 @@ int main(int argc, char *argv[]) {
return -1; // Could not open codec
// Allocate video frame
- pFrame=avcodec_alloc_frame();
+ pFrame=av_frame_alloc();
// Allocate an AVFrame structure
- pFrameRGB=avcodec_alloc_frame();
+ pFrameRGB=av_frame_alloc();
if(pFrameRGB==NULL)
return -1;
View
@@ -94,7 +94,7 @@ int main(int argc, char *argv[]) {
return -1; // Could not open codec
// Allocate video frame
- pFrame=avcodec_alloc_frame();
+ pFrame=av_frame_alloc();
// Make a screen to put our video
#ifndef __DARWIN__
View
@@ -302,7 +302,7 @@ int main(int argc, char *argv[]) {
return -1; // Could not open codec
// Allocate video frame
- pFrame=avcodec_alloc_frame();
+ pFrame=av_frame_alloc();
// Make a screen to put our video
View
@@ -442,7 +442,7 @@ int video_thread(void *arg) {
int frameFinished;
AVFrame *pFrame;
- pFrame = avcodec_alloc_frame();
+ pFrame = av_frame_alloc();
for(;;) {
if(packet_queue_get(&is->videoq, packet, 1) < 0) {
View
@@ -545,7 +545,7 @@ int video_thread(void *arg) {
AVFrame *pFrame;
double pts;
- pFrame = avcodec_alloc_frame();
+ pFrame = av_frame_alloc();
for(;;) {
if(packet_queue_get(&is->videoq, packet, 1) < 0) {
@@ -653,7 +653,7 @@ int stream_component_open(VideoState *is, int stream_index) {
NULL,
NULL
);
- codecCtx->get_buffer = our_get_buffer;
+ codecCtx->get_buffer2 = our_get_buffer;
codecCtx->release_buffer = our_release_buffer;
break;
default:
View
@@ -656,7 +656,7 @@ int video_thread(void *arg) {
AVFrame *pFrame;
double pts;
- pFrame = avcodec_alloc_frame();
+ pFrame = av_frame_alloc();
for(;;) {
if(packet_queue_get(&is->videoq, packet, 1) < 0) {
@@ -771,7 +771,7 @@ int stream_component_open(VideoState *is, int stream_index) {
NULL,
NULL
);
- codecCtx->get_buffer = our_get_buffer;
+ codecCtx->get_buffer2 = our_get_buffer;
codecCtx->release_buffer = our_release_buffer;
break;
default:
View
@@ -667,7 +667,7 @@ int video_thread(void *arg) {
AVFrame *pFrame;
double pts;
- pFrame = avcodec_alloc_frame();
+ pFrame = av_frame_alloc();
for(;;) {
if(packet_queue_get(&is->videoq, packet, 1) < 0) {
@@ -785,7 +785,7 @@ int stream_component_open(VideoState *is, int stream_index) {
NULL,
NULL
);
- codecCtx->get_buffer = our_get_buffer;
+ codecCtx->get_buffer2 = our_get_buffer;
codecCtx->release_buffer = our_release_buffer;
break;

0 comments on commit 172ec32

Please sign in to comment.