+--- gpac/applications/dashcast/video_encoder.c~ 2014-10-07 23:10:04.000000000 +0200
++++ gpac/applications/dashcast/video_encoder.c 2016-03-23 08:34:30.284438268 +0100
+@@ -87,7 +87,7 @@
+ video_output_file->codec_ctx->time_base.den = video_data_conf->time_base.den;
+ video_output_file->codec_ctx->time_base.num = video_data_conf->time_base.num * video_data_conf->time_base.den / video_data_conf->framerate;
+ }
+- video_output_file->codec_ctx->pix_fmt = PIX_FMT_YUV420P;
++ video_output_file->codec_ctx->pix_fmt = AV_PIX_FMT_YUV420P;
+ video_output_file->codec_ctx->gop_size = video_data_conf->framerate;
+
+ // video_output_file->codec_ctx->codec_id = video_codec->id;
+--- gpac/applications/dashcast/video_muxer.c~ 2014-10-07 23:10:04.000000000 +0200
++++ gpac/applications/dashcast/video_muxer.c 2016-03-23 08:35:04.941564779 +0100
+@@ -642,7 +642,7 @@
+
+ video_stream->codec->time_base = video_codec_ctx->time_base;
+
+- video_stream->codec->pix_fmt = PIX_FMT_YUV420P;
++ video_stream->codec->pix_fmt = AV_PIX_FMT_YUV420P;
+ video_stream->codec->gop_size = video_codec_ctx->time_base.den; //video_output_file->video_data_conf->framerate;
+
+ av_opt_set(video_stream->codec->priv_data, "preset", "ultrafast", 0);
+--- gpac/applications/dashcast/video_scaler.c~ 2014-10-07 23:10:04.000000000 +0200
++++ gpac/applications/dashcast/video_scaler.c 2016-03-23 08:35:29.971877188 +0100
+@@ -125,7 +125,7 @@
+ dc_consumer_init(&video_scaled_data->consumer, video_cb_size, name);
+
+ video_scaled_data->num_producers = max_source;
+- video_scaled_data->out_pix_fmt = PIX_FMT_YUV420P;
++ video_scaled_data->out_pix_fmt = AV_PIX_FMT_YUV420P;
+ GF_SAFE_ALLOC_N(video_scaled_data->vsprop, max_source, VideoScaledProp);
+ memset(video_scaled_data->vsprop, 0, max_source * sizeof(VideoScaledProp));
+
+@@ -189,7 +189,7 @@
+ video_scaled_data_node->cropped_frame->width = video_input_data->vprop[index].width - video_input_data->vprop[index].crop_x;
+ video_scaled_data_node->cropped_frame->height = video_input_data->vprop[index].height - video_input_data->vprop[index].crop_y;
+ #endif
+- 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) {
++ 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) {
+ GF_LOG(GF_LOG_ERROR, GF_LOG_DASH, ("Video scaler: error while cropping picture.\n"));
+ return -1;
+ }
+--- gpac/applications/dashcast/audio_decoder.c~ 2014-10-07 23:10:04.000000000 +0200
++++ gpac/applications/dashcast/audio_decoder.c 2016-03-23 08:37:24.863173759 +0100
+@@ -204,7 +204,7 @@
+ packet.data = NULL;
+ packet.size = 0;
+
+-#ifndef FF_API_AVFRAME_LAVC
++#if 0
+ avcodec_get_frame_defaults(audio_input_data->aframe);
+ #else
+ av_frame_unref(audio_input_data->aframe);
+@@ -239,7 +239,7 @@
+ if (packet.stream_index == audio_input_file->astream_idx) {
+ /* Set audio frame to default */
+
+-#ifndef FF_API_AVFRAME_LAVC
++#if 0
+ avcodec_get_frame_defaults(audio_input_data->aframe);
+ #else
+ av_frame_unref(audio_input_data->aframe);
+--- gpac/applications/dashcast/audio_encoder.c~ 2014-10-07 23:10:04.000000000 +0200
++++ gpac/applications/dashcast/audio_encoder.c 2016-03-23 08:37:37.899978004 +0100
+@@ -84,7 +84,7 @@
+
+ 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;
+
+-#ifndef FF_API_AVFRAME_LAVC
++#if 0
+ avcodec_get_frame_defaults(audio_output_file->aframe);
+ #else
+ av_frame_unref(audio_output_file->aframe);
+--- gpac/applications/dashcast/video_decoder.c~ 2014-10-07 23:10:04.000000000 +0200
++++ gpac/applications/dashcast/video_decoder.c 2016-03-23 08:38:02.470233825 +0100
+@@ -244,7 +244,7 @@
+ video_data_node->source_number = source_number;
+ /* Flush decoder */
+ memset(&packet, 0, sizeof(AVPacket));
+-#ifndef FF_API_AVFRAME_LAVC
++#if 0
+ avcodec_get_frame_defaults(video_data_node->vframe);
+ #else
+ av_frame_unref(video_data_node->vframe);
+@@ -283,7 +283,7 @@
+ video_data_node->source_number = source_number;
+
+ /* Set video frame to default */
+-#ifndef FF_API_AVFRAME_LAVC
++#if 0
+ avcodec_get_frame_defaults(video_data_node->vframe);
+ #else
+ av_frame_unref(video_data_node->vframe);