]> git.pld-linux.org Git - packages/gpac.git/blob - ffmpeg4.patch
1e3d775ec27cf4d0922c86d7d7dd1367d51bfce3
[packages/gpac.git] / ffmpeg4.patch
1 --- gpac/applications/dashcast/video_encoder.c~ 2018-04-29 18:32:41.000000000 +0200
2 +++ gpac/applications/dashcast/video_encoder.c  2018-04-29 18:35:58.454087341 +0200
3 @@ -141,7 +141,7 @@
4         }
5  
6         //the global header gives access to the extradata (SPS/PPS)
7 -       video_output_file->codec_ctx->flags |= CODEC_FLAG_GLOBAL_HEADER;
8 +       video_output_file->codec_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
9  
10         video_output_file->vstream_idx = 0;//video_stream->index;
11  
12 --- gpac-0.7.1/modules/ffmpeg_in/ffmpeg_decode.c~       2017-04-26 13:33:17.000000000 +0200
13 +++ gpac-0.7.1/modules/ffmpeg_in/ffmpeg_decode.c        2018-09-17 13:53:01.462470101 +0200
14 @@ -49,7 +49,7 @@
15  static uint8_t * ffmpeg_realloc_buffer(uint8_t * oldBuffer, u32 size) {
16         uint8_t * buffer;
17         /* Size of buffer must be larger, see avcodec_decode_video2 documentation */
18 -       u32 allocatedSz = sizeof( char ) * (FF_INPUT_BUFFER_PADDING_SIZE + size);
19 +       u32 allocatedSz = sizeof( char ) * (AV_INPUT_BUFFER_PADDING_SIZE + size);
20         if (oldBuffer)
21                 gf_free(oldBuffer);
22         buffer = (uint8_t*)gf_malloc( allocatedSz );
23 @@ -577,7 +577,7 @@ static GF_Err FFDEC_GetCapabilities(GF_B
24                 capability->cap.valueInt = 1;
25                 return GF_OK;
26         case GF_CODEC_PADDING_BYTES:
27 -               capability->cap.valueInt = FF_INPUT_BUFFER_PADDING_SIZE;
28 +               capability->cap.valueInt = AV_INPUT_BUFFER_PADDING_SIZE;
29                 return GF_OK;
30         case GF_CODEC_REORDER:
31                 capability->cap.valueInt = 1;
32 @@ -669,7 +669,7 @@ static GF_Err FFDEC_GetCapabilities(GF_B
33                 break;
34  
35         case GF_CODEC_PADDING_BYTES:
36 -               capability->cap.valueInt = FF_INPUT_BUFFER_PADDING_SIZE;
37 +               capability->cap.valueInt = AV_INPUT_BUFFER_PADDING_SIZE;
38                 break;
39         default:
40                 capability->cap.valueInt = 0;
This page took 0.116072 seconds and 2 git commands to generate.