Projects
home:davepl
transcode
Sign Up
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 14
View file
ffmpeg4.patch
Changed
@@ -1,7 +1,7 @@ Index: encode/encode_lavc.c =================================================================== ---- encode/encode_lavc.c.orig 2019-02-14 14:47:24.204048575 +0200 -+++ encode/encode_lavc.c 2019-02-14 14:50:11.942691526 +0200 +--- encode/encode_lavc.c.orig 2019-02-15 10:14:35.479739977 +0200 ++++ encode/encode_lavc.c 2019-02-15 10:20:22.394123390 +0200 @@ -77,6 +77,13 @@ struct tclavcconfigdata_ { int luma_elim_threshold; int chroma_elim_threshold; @@ -16,92 +16,6 @@ /* same as above for flags */ struct { -@@ -233,7 +240,7 @@ static void pre_encode_video_yuv420p(TCL - vframe_list_t *vframe) - { - avpicture_fill((AVPicture *)&pd->ff_venc_frame, vframe->video_buf, -- PIX_FMT_YUV420P, -+ AV_PIX_FMT_YUV420P, - pd->ff_vcontext.width, pd->ff_vcontext.height); - } - -@@ -247,7 +254,7 @@ static void pre_encode_video_yuv420p_huf - IMG_YUV_DEFAULT, - pd->ff_vcontext.width, pd->ff_vcontext.height); - avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf, -- PIX_FMT_YUV422P, -+ AV_PIX_FMT_YUV422P, - pd->ff_vcontext.width, pd->ff_vcontext.height); - ac_imgconvert(src, IMG_YUV_DEFAULT, - pd->ff_venc_frame.data, IMG_YUV422P, -@@ -263,7 +270,7 @@ static void pre_encode_video_yuv422p(TCL - IMG_YUV422P, - pd->ff_vcontext.width, pd->ff_vcontext.height); - avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf, -- PIX_FMT_YUV420P, -+ AV_PIX_FMT_YUV420P, - pd->ff_vcontext.width, pd->ff_vcontext.height); - ac_imgconvert(src, IMG_YUV422P, - pd->ff_venc_frame.data, IMG_YUV420P, -@@ -275,7 +282,7 @@ static void pre_encode_video_yuv422p_huf - vframe_list_t *vframe) - { - avpicture_fill((AVPicture *)&pd->ff_venc_frame, vframe->video_buf, -- PIX_FMT_YUV422P, -+ AV_PIX_FMT_YUV422P, - pd->ff_vcontext.width, pd->ff_vcontext.height); - - } -@@ -285,7 +292,7 @@ static void pre_encode_video_rgb24(TCLav - vframe_list_t *vframe) - { - avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf, -- PIX_FMT_YUV420P, -+ AV_PIX_FMT_YUV420P, - pd->ff_vcontext.width, pd->ff_vcontext.height); - ac_imgconvert(&vframe->video_buf, IMG_RGB_DEFAULT, - pd->ff_venc_frame.data, IMG_YUV420P, -@@ -610,21 +617,21 @@ static int tc_lavc_set_pix_fmt(TCLavcPri - case CODEC_YUV: - if (TC_VCODEC_ID(pd) == TC_CODEC_HUFFYUV) { - pd->tc_pix_fmt = TC_CODEC_YUV422P; -- pd->ff_vcontext.pix_fmt = PIX_FMT_YUV422P; -+ pd->ff_vcontext.pix_fmt = AV_PIX_FMT_YUV422P; - pd->pre_encode_video = pre_encode_video_yuv420p_huffyuv; - } else { - pd->tc_pix_fmt = TC_CODEC_YUV420P; - pd->ff_vcontext.pix_fmt = (TC_VCODEC_ID(pd) == TC_CODEC_MJPEG) -- ? PIX_FMT_YUVJ420P -- : PIX_FMT_YUV420P; -+ ? AV_PIX_FMT_YUVJ420P -+ : AV_PIX_FMT_YUV420P; - pd->pre_encode_video = pre_encode_video_yuv420p; - } - break; - case CODEC_YUV422: - pd->tc_pix_fmt = TC_CODEC_YUV422P; - pd->ff_vcontext.pix_fmt = (TC_VCODEC_ID(pd) == TC_CODEC_MJPEG) -- ? PIX_FMT_YUVJ422P -- : PIX_FMT_YUV422P; -+ ? AV_PIX_FMT_YUVJ422P -+ : AV_PIX_FMT_YUV422P; - if (TC_VCODEC_ID(pd) == TC_CODEC_HUFFYUV) { - pd->pre_encode_video = pre_encode_video_yuv422p_huffyuv; - } else { -@@ -634,10 +641,10 @@ static int tc_lavc_set_pix_fmt(TCLavcPri - case CODEC_RGB: - pd->tc_pix_fmt = TC_CODEC_RGB; - pd->ff_vcontext.pix_fmt = (TC_VCODEC_ID(pd) == TC_CODEC_HUFFYUV) -- ? PIX_FMT_YUV422P -+ ? AV_PIX_FMT_YUV422P - : (TC_VCODEC_ID(pd) == TC_CODEC_MJPEG) -- ? PIX_FMT_YUVJ420P -- : PIX_FMT_YUV420P; -+ ? AV_PIX_FMT_YUVJ420P -+ : AV_PIX_FMT_YUV420P; - pd->pre_encode_video = pre_encode_video_rgb24; - break; - default: @@ -684,7 +691,7 @@ static int tc_lavc_init_multipass(TCLavc switch (vob->divxmultipass) { case 1: @@ -348,18 +262,9 @@ /* End of the config file */ Index: export/export_ffmpeg.c =================================================================== ---- export/export_ffmpeg.c.orig 2019-02-14 14:47:24.236049841 +0200 -+++ export/export_ffmpeg.c 2019-02-14 15:00:08.990473106 +0200 -@@ -492,7 +492,7 @@ MOD_init - lavc_venc_frame = avcodec_alloc_frame(); - - lavc_convert_frame= avcodec_alloc_frame(); -- size = avpicture_get_size(PIX_FMT_RGB24, vob->ex_v_width, vob->ex_v_height); -+ size = avpicture_get_size(AV_PIX_FMT_RGB24, vob->ex_v_width, vob->ex_v_height); - enc_buffer = tc_malloc(size); - - if (lavc_venc_context == NULL || !enc_buffer || !lavc_convert_frame) { -@@ -830,14 +830,11 @@ MOD_init +--- export/export_ffmpeg.c.orig 2019-02-15 10:14:35.479739977 +0200 ++++ export/export_ffmpeg.c 2019-02-15 10:20:22.398123553 +0200 +@@ -833,14 +833,11 @@ MOD_init lavc_venc_context->bit_rate = vob->divxbitrate * 1000; lavc_venc_context->bit_rate_tolerance = lavc_param_vrate_tolerance * 1000; @@ -374,7 +279,7 @@ lavc_venc_context->b_frame_strategy = lavc_param_vb_strategy; lavc_venc_context->b_quant_offset = lavc_param_vb_qoffset; -@@ -845,8 +842,23 @@ MOD_init +@@ -848,8 +845,23 @@ MOD_init #define set_dict_opt(val, opt) \ snprintf(buf, sizeof(buf), "%i", val); \ av_dict_set(&lavc_venc_opts, opt, buf, 0) @@ -398,7 +303,7 @@ lavc_venc_context->rtp_payload_size = lavc_param_packet_size; #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) if (lavc_param_packet_size) -@@ -855,15 +867,9 @@ MOD_init +@@ -858,15 +870,9 @@ MOD_init lavc_venc_context->strict_std_compliance= lavc_param_strict; lavc_venc_context->i_quant_factor = lavc_param_vi_qfactor; lavc_venc_context->i_quant_offset = lavc_param_vi_qoffset; @@ -414,7 +319,7 @@ lavc_venc_context->debug = lavc_param_debug; lavc_venc_context->last_predictor_count= lavc_param_last_pred; lavc_venc_context->pre_me = lavc_param_pre_me; -@@ -871,8 +877,6 @@ MOD_init +@@ -874,8 +880,6 @@ MOD_init lavc_venc_context->pre_dia_size = lavc_param_pre_dia_size; lavc_venc_context->me_subpel_quality = lavc_param_me_subpel_quality; lavc_venc_context->me_range = lavc_param_me_range; @@ -423,7 +328,7 @@ lavc_venc_context->coder_type = lavc_param_coder; lavc_venc_context->context_model = lavc_param_context; lavc_venc_context->scenechange_threshold= lavc_param_sc_threshold; -@@ -1078,6 +1082,8 @@ MOD_init +@@ -1081,6 +1085,8 @@ MOD_init lavc_venc_context->flags |= lavc_param_mv0; if(lavc_param_qp_rd) av_dict_set(&lavc_venc_opts, "mpv_flags", "+qp_rd", 0); @@ -432,7 +337,7 @@ lavc_venc_context->flags |= lavc_param_ilme; #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) lavc_venc_context->flags |= lavc_param_trell; -@@ -1086,9 +1092,7 @@ MOD_init +@@ -1089,9 +1095,7 @@ MOD_init #endif if (lavc_param_gray) @@ -443,7 +348,7 @@ switch(vob->encode_fields) { case TC_ENCODE_FIELDS_TOP_FIRST: -@@ -1106,9 +1110,9 @@ MOD_init +@@ -1109,9 +1113,9 @@ MOD_init } lavc_venc_context->flags |= interlacing_active ? @@ -455,39 +360,7 @@ lavc_venc_context->flags |= lavc_param_psnr; do_psnr = lavc_param_psnr; -@@ -1116,7 +1120,7 @@ MOD_init - lavc_venc_context->prediction_method = lavc_param_prediction_method; - - if(is_huffyuv) -- lavc_venc_context->pix_fmt = PIX_FMT_YUV422P; -+ lavc_venc_context->pix_fmt = AV_PIX_FMT_YUV422P; - else - { - switch(pix_fmt) -@@ -1125,18 +1129,18 @@ MOD_init - case CODEC_RGB: - { - if(is_mjpeg) -- lavc_venc_context->pix_fmt = PIX_FMT_YUVJ420P; -+ lavc_venc_context->pix_fmt = AV_PIX_FMT_YUVJ420P; - else -- lavc_venc_context->pix_fmt = PIX_FMT_YUV420P;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.