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
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;
10 video_output_file->vstream_idx = 0;//video_stream->index;
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
15 static uint8_t * ffmpeg_realloc_buffer(uint8_t * oldBuffer, u32 size) {
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);
22 buffer = (uint8_t*)gf_malloc( allocatedSz );
23 @@ -577,7 +577,7 @@ static GF_Err FFDEC_GetCapabilities(GF_B
24 capability->cap.valueInt = 1;
26 case GF_CODEC_PADDING_BYTES:
27 - capability->cap.valueInt = FF_INPUT_BUFFER_PADDING_SIZE;
28 + capability->cap.valueInt = AV_INPUT_BUFFER_PADDING_SIZE;
30 case GF_CODEC_REORDER:
31 capability->cap.valueInt = 1;
32 @@ -669,7 +669,7 @@ static GF_Err FFDEC_GetCapabilities(GF_B
35 case GF_CODEC_PADDING_BYTES:
36 - capability->cap.valueInt = FF_INPUT_BUFFER_PADDING_SIZE;
37 + capability->cap.valueInt = AV_INPUT_BUFFER_PADDING_SIZE;
40 capability->cap.valueInt = 0;