[MPlayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.135,1.136
Michael Niedermayer CVS
syncmail at mplayerhq.hu
Tue Mar 21 23:12:51 CET 2006
- Previous message: [MPlayer-cvslog] CVS: main/libmpcodecs dec_video.c, 1.165, 1.166 ve_divx4.c, 1.20, 1.21 ve_lavc.c, 1.134, 1.135 ve_libdv.c, 1.15, 1.16 ve_nuv.c, 1.9, 1.10 ve_qtvideo.c, 1.18, 1.19 ve_raw.c, 1.7, 1.8 ve_vfw.c, 1.21, 1.22 ve_x264.c, 1.48, 1.49 ve_xvid.c, 1.32, 1.33 ve_xvid4.c, 1.25, 1.26 vf.c, 1.124, 1.125 vf.h, 1.29, 1.30 vf_1bpp.c, 1.5, 1.6 vf_2xsai.c, 1.4, 1.5 vf_bmovl.c, 1.14, 1.15 vf_boxblur.c, 1.6, 1.7 vf_crop.c, 1.18, 1.19 vf_cropdetect.c, 1.13, 1.14 vf_decimate.c, 1.3, 1.4 vf_delogo.c, 1.6, 1.7 vf_denoise3d.c, 1.10, 1.11 vf_detc.c, 1.7, 1.8 vf_dint.c, 1.5, 1.6 vf_divtc.c, 1.4, 1.5 vf_down3dright.c, 1.6, 1.7 vf_eq.c, 1.10, 1.11 vf_eq2.c, 1.10, 1.11 vf_expand.c, 1.34, 1.35 vf_fame.c, 1.12, 1.13 vf_field.c, 1.6, 1.7 vf_fil.c, 1.2, 1.3 vf_filmdint.c, 1.5, 1.6 vf_flip.c, 1.14, 1.15 vf_framestep.c, 1.2, 1.3 vf_fspp.c, 1.13, 1.14 vf_halfpack.c, 1.8, 1.9 vf_harddup.c, 1.3, 1.4 vf_hqdn3d.c, 1.7, 1.8 vf_hue.c, 1.6, 1.7 vf_il.c, 1.7, 1.8 vf_ilpack.c, 1.6, 1.7 vf_ivtc.c, 1.6, 1.7 vf_kerndeint.c, 1.4, 1.5 vf_lavc.c, 1.20, 1.21 vf_lavcdeint.c, 1.9, 1.10 vf_mirror.c, 1.8, 1.9 vf_noise.c, 1.16, 1.17 vf_palette.c, 1.13, 1.14 vf_perspective.c, 1.4, 1.5 vf_phase.c, 1.4, 1.5 vf_pp.c, 1.35, 1.36 vf_pp7.c, 1.7, 1.8 vf_pullup.c, 1.14, 1.15 vf_qp.c, 1.6, 1.7 vf_rectangle.c, 1.10, 1.11 vf_remove_logo.c, 1.4, 1.5 vf_rgb2bgr.c, 1.7, 1.8 vf_rgbtest.c, 1.3, 1.4 vf_rotate.c, 1.9, 1.10 vf_sab.c, 1.8, 1.9 vf_scale.c, 1.64, 1.65 vf_screenshot.c, 1.8, 1.9 vf_smartblur.c, 1.11, 1.12 vf_softpulldown.c, 1.4, 1.5 vf_softskip.c, 1.2, 1.3 vf_spp.c, 1.34, 1.35 vf_swapuv.c, 1.7, 1.8 vf_telecine.c, 1.3, 1.4 vf_test.c, 1.8, 1.9 vf_tfields.c, 1.12, 1.13 vf_tile.c, 1.2, 1.3 vf_tinterlace.c, 1.4, 1.5 vf_unsharp.c, 1.9, 1.10 vf_uspp.c, 1.6, 1.7 vf_vo.c, 1.26, 1.27 vf_yuvcsp.c, 1.2, 1.3 vf_yuy2.c, 1.9, 1.10 vf_yvu9.c, 1.7, 1.8 vf_zrmjpeg.c, 1.6, 1.7
- Next message: [MPlayer-cvslog] CVS: main/libmenu vf_menu.c,1.12,1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Michael Niedermayer CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv6245
Modified Files:
ve_lavc.c
Log Message:
10l (null pointer dereference)
Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -r1.135 -r1.136
--- ve_lavc.c 21 Mar 2006 21:26:40 -0000 1.135
+++ ve_lavc.c 21 Mar 2006 22:12:48 -0000 1.136
@@ -854,6 +854,7 @@
static int encode_frame(struct vf_instance_s* vf, AVFrame *pic, double pts){
const char pict_type_char[5]= {'?', 'I', 'P', 'B', 'S'};
int out_size;
+ double dts;
if(pic){
pic->opaque= malloc(sizeof(pts));
@@ -862,15 +863,24 @@
out_size = avcodec_encode_video(lavc_venc_context, mux_v->buffer, mux_v->buffer_size,
pic);
+ if(pts != MP_NOPTS_VALUE)
+ dts= pts - lavc_venc_context->delay * av_q2d(lavc_venc_context->time_base);
+ else
+ dts= MP_NOPTS_VALUE;
+
+ pts= lavc_venc_context->coded_frame->opaque ?
+ *(double*)lavc_venc_context->coded_frame->opaque
+ : MP_NOPTS_VALUE;
+
if(out_size == 0) {
++mux_v->encoder_delay;
return 0;
}
muxer_write_chunk(mux_v,out_size,lavc_venc_context->coded_frame->key_frame?0x10:0,
- pts,
- *(double*)lavc_venc_context->coded_frame->opaque);
+ dts, pts);
free(lavc_venc_context->coded_frame->opaque);
+ lavc_venc_context->coded_frame->opaque= NULL;
#if LIBAVCODEC_BUILD >= 4643
/* store psnr / pict size / type / qscale */
- Previous message: [MPlayer-cvslog] CVS: main/libmpcodecs dec_video.c, 1.165, 1.166 ve_divx4.c, 1.20, 1.21 ve_lavc.c, 1.134, 1.135 ve_libdv.c, 1.15, 1.16 ve_nuv.c, 1.9, 1.10 ve_qtvideo.c, 1.18, 1.19 ve_raw.c, 1.7, 1.8 ve_vfw.c, 1.21, 1.22 ve_x264.c, 1.48, 1.49 ve_xvid.c, 1.32, 1.33 ve_xvid4.c, 1.25, 1.26 vf.c, 1.124, 1.125 vf.h, 1.29, 1.30 vf_1bpp.c, 1.5, 1.6 vf_2xsai.c, 1.4, 1.5 vf_bmovl.c, 1.14, 1.15 vf_boxblur.c, 1.6, 1.7 vf_crop.c, 1.18, 1.19 vf_cropdetect.c, 1.13, 1.14 vf_decimate.c, 1.3, 1.4 vf_delogo.c, 1.6, 1.7 vf_denoise3d.c, 1.10, 1.11 vf_detc.c, 1.7, 1.8 vf_dint.c, 1.5, 1.6 vf_divtc.c, 1.4, 1.5 vf_down3dright.c, 1.6, 1.7 vf_eq.c, 1.10, 1.11 vf_eq2.c, 1.10, 1.11 vf_expand.c, 1.34, 1.35 vf_fame.c, 1.12, 1.13 vf_field.c, 1.6, 1.7 vf_fil.c, 1.2, 1.3 vf_filmdint.c, 1.5, 1.6 vf_flip.c, 1.14, 1.15 vf_framestep.c, 1.2, 1.3 vf_fspp.c, 1.13, 1.14 vf_halfpack.c, 1.8, 1.9 vf_harddup.c, 1.3, 1.4 vf_hqdn3d.c, 1.7, 1.8 vf_hue.c, 1.6, 1.7 vf_il.c, 1.7, 1.8 vf_ilpack.c, 1.6, 1.7 vf_ivtc.c, 1.6, 1.7 vf_kerndeint.c, 1.4, 1.5 vf_lavc.c, 1.20, 1.21 vf_lavcdeint.c, 1.9, 1.10 vf_mirror.c, 1.8, 1.9 vf_noise.c, 1.16, 1.17 vf_palette.c, 1.13, 1.14 vf_perspective.c, 1.4, 1.5 vf_phase.c, 1.4, 1.5 vf_pp.c, 1.35, 1.36 vf_pp7.c, 1.7, 1.8 vf_pullup.c, 1.14, 1.15 vf_qp.c, 1.6, 1.7 vf_rectangle.c, 1.10, 1.11 vf_remove_logo.c, 1.4, 1.5 vf_rgb2bgr.c, 1.7, 1.8 vf_rgbtest.c, 1.3, 1.4 vf_rotate.c, 1.9, 1.10 vf_sab.c, 1.8, 1.9 vf_scale.c, 1.64, 1.65 vf_screenshot.c, 1.8, 1.9 vf_smartblur.c, 1.11, 1.12 vf_softpulldown.c, 1.4, 1.5 vf_softskip.c, 1.2, 1.3 vf_spp.c, 1.34, 1.35 vf_swapuv.c, 1.7, 1.8 vf_telecine.c, 1.3, 1.4 vf_test.c, 1.8, 1.9 vf_tfields.c, 1.12, 1.13 vf_tile.c, 1.2, 1.3 vf_tinterlace.c, 1.4, 1.5 vf_unsharp.c, 1.9, 1.10 vf_uspp.c, 1.6, 1.7 vf_vo.c, 1.26, 1.27 vf_yuvcsp.c, 1.2, 1.3 vf_yuy2.c, 1.9, 1.10 vf_yvu9.c, 1.7, 1.8 vf_zrmjpeg.c, 1.6, 1.7
- Next message: [MPlayer-cvslog] CVS: main/libmenu vf_menu.c,1.12,1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list