You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.5 KiB
44 lines
1.5 KiB
--- a/applications/dashcast/video_encoder.c
|
|
+++ b/applications/dashcast/video_encoder.c
|
|
@@ -143,8 +143,10 @@ int dc_video_encoder_open(VideoOutputFile *video_output_file, VideoDataConf *vid
|
|
av_opt_set_int(video_output_file->codec_ctx->priv_data, "key-int", video_output_file->gdr, 0);
|
|
}
|
|
|
|
+#ifdef CODEC_FLAG_GLOBAL_HEADER
|
|
//the global header gives access to the extradata (SPS/PPS)
|
|
video_output_file->codec_ctx->flags |= CODEC_FLAG_GLOBAL_HEADER;
|
|
+#endif
|
|
|
|
video_output_file->vstream_idx = 0;//video_stream->index;
|
|
|
|
--- a/modules/ffmpeg_in/ffmpeg_decode.c
|
|
+++ b/modules/ffmpeg_in/ffmpeg_decode.c
|
|
@@ -49,7 +49,7 @@
|
|
static uint8_t * ffmpeg_realloc_buffer(uint8_t * oldBuffer, u32 size) {
|
|
uint8_t * buffer;
|
|
/* Size of buffer must be larger, see avcodec_decode_video2 documentation */
|
|
- u32 allocatedSz = sizeof( char ) * (FF_INPUT_BUFFER_PADDING_SIZE + size);
|
|
+ u32 allocatedSz = sizeof( char ) * (AV_INPUT_BUFFER_PADDING_SIZE + size);
|
|
if (oldBuffer)
|
|
gf_free(oldBuffer);
|
|
buffer = (uint8_t*)gf_malloc( allocatedSz );
|
|
@@ -577,7 +577,7 @@
|
|
capability->cap.valueInt = 1;
|
|
return GF_OK;
|
|
case GF_CODEC_PADDING_BYTES:
|
|
- capability->cap.valueInt = FF_INPUT_BUFFER_PADDING_SIZE;
|
|
+ capability->cap.valueInt = AV_INPUT_BUFFER_PADDING_SIZE;
|
|
return GF_OK;
|
|
case GF_CODEC_REORDER:
|
|
capability->cap.valueInt = 1;
|
|
@@ -669,7 +669,7 @@
|
|
break;
|
|
|
|
case GF_CODEC_PADDING_BYTES:
|
|
- capability->cap.valueInt = FF_INPUT_BUFFER_PADDING_SIZE;
|
|
+ capability->cap.valueInt = AV_INPUT_BUFFER_PADDING_SIZE;
|
|
break;
|
|
default:
|
|
capability->cap.valueInt = 0;
|
|
|