1 --- gpac/applications/dashcast/video_encoder.c~ 2014-10-07 23:10:04.000000000 +0200
2 +++ gpac/applications/dashcast/video_encoder.c 2016-03-23 08:34:30.284438268 +0100
4 video_output_file->codec_ctx->time_base.den = video_data_conf->time_base.den;
5 video_output_file->codec_ctx->time_base.num = video_data_conf->time_base.num * video_data_conf->time_base.den / video_data_conf->framerate;
7 - video_output_file->codec_ctx->pix_fmt = PIX_FMT_YUV420P;
8 + video_output_file->codec_ctx->pix_fmt = AV_PIX_FMT_YUV420P;
9 video_output_file->codec_ctx->gop_size = video_data_conf->framerate;
11 // video_output_file->codec_ctx->codec_id = video_codec->id;
12 --- gpac/applications/dashcast/video_muxer.c~ 2014-10-07 23:10:04.000000000 +0200
13 +++ gpac/applications/dashcast/video_muxer.c 2016-03-23 08:35:04.941564779 +0100
16 video_stream->codec->time_base = video_codec_ctx->time_base;
18 - video_stream->codec->pix_fmt = PIX_FMT_YUV420P;
19 + video_stream->codec->pix_fmt = AV_PIX_FMT_YUV420P;
20 video_stream->codec->gop_size = video_codec_ctx->time_base.den; //video_output_file->video_data_conf->framerate;
22 av_opt_set(video_stream->codec->priv_data, "preset", "ultrafast", 0);
23 --- gpac/applications/dashcast/video_scaler.c~ 2014-10-07 23:10:04.000000000 +0200
24 +++ gpac/applications/dashcast/video_scaler.c 2016-03-23 08:35:29.971877188 +0100
26 dc_consumer_init(&video_scaled_data->consumer, video_cb_size, name);
28 video_scaled_data->num_producers = max_source;
29 - video_scaled_data->out_pix_fmt = PIX_FMT_YUV420P;
30 + video_scaled_data->out_pix_fmt = AV_PIX_FMT_YUV420P;
31 GF_SAFE_ALLOC_N(video_scaled_data->vsprop, max_source, VideoScaledProp);
32 memset(video_scaled_data->vsprop, 0, max_source * sizeof(VideoScaledProp));
35 video_scaled_data_node->cropped_frame->width = video_input_data->vprop[index].width - video_input_data->vprop[index].crop_x;
36 video_scaled_data_node->cropped_frame->height = video_input_data->vprop[index].height - video_input_data->vprop[index].crop_y;
38 - if (av_picture_crop((AVPicture*)video_scaled_data_node->cropped_frame, (AVPicture*)video_data_node->vframe, PIX_FMT_YUV420P, video_input_data->vprop[index].crop_y, video_input_data->vprop[index].crop_x) < 0) {
39 + if (av_picture_crop((AVPicture*)video_scaled_data_node->cropped_frame, (AVPicture*)video_data_node->vframe, AV_PIX_FMT_YUV420P, video_input_data->vprop[index].crop_y, video_input_data->vprop[index].crop_x) < 0) {
40 GF_LOG(GF_LOG_ERROR, GF_LOG_DASH, ("Video scaler: error while cropping picture.\n"));
43 --- gpac/applications/dashcast/audio_decoder.c~ 2014-10-07 23:10:04.000000000 +0200
44 +++ gpac/applications/dashcast/audio_decoder.c 2016-03-23 08:37:24.863173759 +0100
49 -#ifndef FF_API_AVFRAME_LAVC
51 avcodec_get_frame_defaults(audio_input_data->aframe);
53 av_frame_unref(audio_input_data->aframe);
55 if (packet.stream_index == audio_input_file->astream_idx) {
56 /* Set audio frame to default */
58 -#ifndef FF_API_AVFRAME_LAVC
60 avcodec_get_frame_defaults(audio_input_data->aframe);
62 av_frame_unref(audio_input_data->aframe);
63 --- gpac/applications/dashcast/audio_encoder.c~ 2014-10-07 23:10:04.000000000 +0200
64 +++ gpac/applications/dashcast/audio_encoder.c 2016-03-23 08:37:37.899978004 +0100
67 audio_output_file->frame_bytes = audio_output_file->codec_ctx->frame_size * av_get_bytes_per_sample(DC_AUDIO_SAMPLE_FORMAT) * DC_AUDIO_NUM_CHANNELS;
69 -#ifndef FF_API_AVFRAME_LAVC
71 avcodec_get_frame_defaults(audio_output_file->aframe);
73 av_frame_unref(audio_output_file->aframe);
74 --- gpac/applications/dashcast/video_decoder.c~ 2014-10-07 23:10:04.000000000 +0200
75 +++ gpac/applications/dashcast/video_decoder.c 2016-03-23 08:38:02.470233825 +0100
77 video_data_node->source_number = source_number;
79 memset(&packet, 0, sizeof(AVPacket));
80 -#ifndef FF_API_AVFRAME_LAVC
82 avcodec_get_frame_defaults(video_data_node->vframe);
84 av_frame_unref(video_data_node->vframe);
86 video_data_node->source_number = source_number;
88 /* Set video frame to default */
89 -#ifndef FF_API_AVFRAME_LAVC
91 avcodec_get_frame_defaults(video_data_node->vframe);
93 av_frame_unref(video_data_node->vframe);