[Ffmpeg-cvslog] CVS: ffmpeg/libavformat dv.c,1.52,1.53
Roman Shaposhnick
romansh
Sun Apr 2 01:13:55 CEST 2006
Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv31590/ffmpeg/libavformat
Modified Files:
dv.c
Log Message:
* fixing DV-in-AVI type1 packet production bug
Index: dv.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/dv.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- dv.c 6 Mar 2006 08:54:33 -0000 1.52
+++ dv.c 1 Apr 2006 23:13:53 -0000 1.53
@@ -834,8 +834,11 @@
{
int size, i;
- if (buf_size < 4 || buf_size < c->sys->frame_size)
- return -1; /* Broken frame, or not enough data */
+ if (buf_size < DV_PROFILE_BYTES ||
+ !(c->sys = dv_frame_profile(buf)) ||
+ buf_size < c->sys->frame_size) {
+ return -1; /* Broken frame, or not enough data */
+ }
/* Queueing audio packet */
/* FIXME: in case of no audio/bad audio we have to do something */
More information about the ffmpeg-cvslog
mailing list