bcoudurier | 1 Aug 02:32 2006
Picon

r5876 - trunk/libavformat/mxf.c

Author: bcoudurier
Date: Tue Aug  1 02:32:47 2006
New Revision: 5876

Modified:
   trunk/libavformat/mxf.c

Log:
skip run-in sequence during probe

Modified: trunk/libavformat/mxf.c
==============================================================================
--- trunk/libavformat/mxf.c	(original)
+++ trunk/libavformat/mxf.c	Tue Aug  1 02:32:47 2006
 <at>  <at>  -919,14 +919,19  <at>  <at> 
 }

 static int mxf_probe(AVProbeData *p) {
-    /* KLV packet describing MXF header partition pack */
+    uint8_t *bufp = p->buf;
+    uint8_t *end = p->buf + p->buf_size;
+
     if (p->buf_size < sizeof(mxf_header_partition_pack_key))
         return 0;

-    if (IS_KLV_KEY(p->buf, mxf_header_partition_pack_key))
-        return AVPROBE_SCORE_MAX;
-    else
-        return 0;
+    /* Must skip Run-In Sequence and search for MXF header partition pack key SMPTE 377M 5.5 */
(Continue reading)

Rich Felker | 1 Aug 04:43 2006

Re: r5872 - trunk/configure

On Mon, Jul 31, 2006 at 08:58:57PM +0200, mru wrote:
> Author: mru
> Date: Mon Jul 31 20:58:56 2006
> New Revision: 5872
> 
> Modified:
>    trunk/configure
> 
> Log:
> ignore explicit #warnings in compiler tests
> 
> 
> Modified: trunk/configure
> ==============================================================================
> --- trunk/configure	(original)
> +++ trunk/configure	Mon Jul 31 20:58:56 2006
>  <at>  <at>  -214,7 +214,7  <at>  <at> 
>  }
>  
>  check_cmd(){
> -    "$ <at> " 2>&1 | tee -a $logfile | { ! grep -q .; }
> +    "$ <at> " 2>&1 | tee -a $logfile | { ! grep -E -q -v '#warning|^In file'; }
>  }

If you ask me, grepping the output sounds _extremely_ fragile. What
compiles can you not trust exit status for? IMO it would be much safer
to detect the few specific broken ones and wrap them with a script
that fixes the exit status, than to risk breaking things on all sorts
of non-broken platforms..

(Continue reading)

kostya | 1 Aug 06:00 2006
Picon

r5877 - trunk/libavcodec/avcodec.h

Author: kostya
Date: Tue Aug  1 06:00:14 2006
New Revision: 5877

Modified:
   trunk/libavcodec/avcodec.h

Log:
Forgot to update LIBAVCODEC_VERSION_INT

Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h	(original)
+++ trunk/libavcodec/avcodec.h	Tue Aug  1 06:00:14 2006
 <at>  <at>  -17,7 +17,7  <at>  <at> 
 #define AV_STRINGIFY(s)         AV_TOSTRING(s)
 #define AV_TOSTRING(s) #s

-#define LIBAVCODEC_VERSION_INT  ((51<<16)+(10<<8)+0)
+#define LIBAVCODEC_VERSION_INT  ((51<<16)+(11<<8)+0)
 #define LIBAVCODEC_VERSION      51.11.0
 #define LIBAVCODEC_BUILD        LIBAVCODEC_VERSION_INT
Kostya | 1 Aug 06:06 2006
Picon

Re: r5862 - in trunk/libavcodec: Makefile avcodec.h dsputil.c dsputil.h vc1dsp.c

On Mon, Jul 31, 2006 at 11:07:07AM +0200, Diego Biurrun wrote:
> On Sun, Jul 30, 2006 at 05:39:26PM +0200, Dominik 'Rathann' Mierzejewski wrote:
> > On Sunday, 30 July 2006 at 05:45, kostya wrote:
> > > Modified: trunk/libavcodec/avcodec.h
> > > ==============================================================================
> > > --- trunk/libavcodec/avcodec.h	(original)
> > > +++ trunk/libavcodec/avcodec.h	Sun Jul 30 05:45:02 2006
> > >  <at>  <at>  -18,7 +18,7  <at>  <at> 
> > >  
> > >  #define LIBAVCODEC_VERSION_INT  ((51<<16)+(10<<8)+0)
> > > -#define LIBAVCODEC_VERSION      51.10.0
> > > +#define LIBAVCODEC_VERSION      51.11.0
> > >  #define LIBAVCODEC_BUILD        LIBAVCODEC_VERSION_INT
> > 
> > You forgot to update VERSION_INT.
> 
> Is Kostya subscribed to this mailing list at all?
> 
> Diego
> 
Yes, but mailinglists in digests and checking mail once a day creates some lag.

And thanks to Dominik for pointing out that missing change.
bcoudurier | 1 Aug 11:56 2006
Picon

r5878 - trunk/libavformat/gxfenc.c

Author: bcoudurier
Date: Tue Aug  1 11:56:27 2006
New Revision: 5878

Modified:
   trunk/libavformat/gxfenc.c

Log:
avoid reading beyond packet size

Modified: trunk/libavformat/gxfenc.c
==============================================================================
--- trunk/libavformat/gxfenc.c	(original)
+++ trunk/libavformat/gxfenc.c	Tue Aug  1 11:56:27 2006
 <at>  <at>  -724,14 +724,13  <at>  <at> 
     gxf_write_packet_header(pb, PKT_MEDIA);
     if (sc->codec->codec_id == CODEC_ID_MPEG2VIDEO && pkt->size % 4) /* MPEG-2 frames must be padded */
         padding = 4 - pkt->size % 4;
+    else if (sc->codec->codec_type == CODEC_TYPE_AUDIO)
+        padding = GXF_AUDIO_PACKET_SIZE - pkt->size;
     gxf_write_media_preamble(pb, ctx, pkt, pkt->size + padding);
-    if (sc->codec->codec_type == CODEC_TYPE_AUDIO)
-        put_buffer(pb, pkt->data, GXF_AUDIO_PACKET_SIZE);
-    else {
-        ctx->field_number += 2;
-        put_buffer(pb, pkt->data, pkt->size);
-    }
+    put_buffer(pb, pkt->data, pkt->size);
     gxf_write_padding(pb, padding);
+    if (sc->codec->codec_type == CODEC_TYPE_VIDEO)
(Continue reading)

bcoudurier | 1 Aug 12:00 2006
Picon

r5879 - trunk/libavformat/gxfenc.c

Author: bcoudurier
Date: Tue Aug  1 12:00:12 2006
New Revision: 5879

Modified:
   trunk/libavformat/gxfenc.c

Log:
negative to_pad won't provoke infinite loop

Modified: trunk/libavformat/gxfenc.c
==============================================================================
--- trunk/libavformat/gxfenc.c	(original)
+++ trunk/libavformat/gxfenc.c	Tue Aug  1 12:00:12 2006
 <at>  <at>  -117,7 +117,7  <at>  <at> 

 static void gxf_write_padding(ByteIOContext *pb, offset_t to_pad)
 {
-    while (to_pad--) {
+    for (; to_pad > 0; to_pad--) {
         put_byte(pb, 0);
     }
 }
reimar | 1 Aug 12:19 2006
Picon

r5880 - trunk/libavformat/gxf.c

Author: reimar
Date: Tue Aug  1 12:19:25 2006
New Revision: 5880

Modified:
   trunk/libavformat/gxf.c

Log:
Support for seeking, both with and without index and correct timestamps

Modified: trunk/libavformat/gxf.c
==============================================================================
--- trunk/libavformat/gxf.c	(original)
+++ trunk/libavformat/gxf.c	Tue Aug  1 12:19:25 2006
 <at>  <at>  -17,6 +17,7  <at>  <at> 
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 #include "avformat.h"
+#include "common.h"

 typedef enum {
     PKT_MAP = 0xbc,
 <at>  <at>  -26,6 +27,32  <at>  <at> 
     PKT_UMF = 0xfd
 } pkt_type_t;

+typedef enum {
+    MAT_NAME = 0x40,
+    MAT_FIRST_FIELD = 0x41,
+    MAT_LAST_FIELD = 0x42,
(Continue reading)

Michael Niedermayer | 1 Aug 12:53 2006
Picon
Picon

Re: r5872 - trunk/configure

Hi

On Mon, Jul 31, 2006 at 10:43:23PM -0400, Rich Felker wrote:
> On Mon, Jul 31, 2006 at 08:58:57PM +0200, mru wrote:
> > Author: mru
> > Date: Mon Jul 31 20:58:56 2006
> > New Revision: 5872
> > 
> > Modified:
> >    trunk/configure
> > 
> > Log:
> > ignore explicit #warnings in compiler tests
> > 
> > 
> > Modified: trunk/configure
> > ==============================================================================
> > --- trunk/configure	(original)
> > +++ trunk/configure	Mon Jul 31 20:58:56 2006
> >  <at>  <at>  -214,7 +214,7  <at>  <at> 
> >  }
> >  
> >  check_cmd(){
> > -    "$ <at> " 2>&1 | tee -a $logfile | { ! grep -q .; }
> > +    "$ <at> " 2>&1 | tee -a $logfile | { ! grep -E -q -v '#warning|^In file'; }
> >  }
> 
> If you ask me, grepping the output sounds _extremely_ fragile. What
> compiles can you not trust exit status for? IMO it would be much safer
> to detect the few specific broken ones and wrap them with a script
(Continue reading)

bcoudurier | 1 Aug 15:43 2006
Picon

r5881 - trunk/libavformat/mov.c

Author: bcoudurier
Date: Tue Aug  1 15:43:24 2006
New Revision: 5881

Modified:
   trunk/libavformat/mov.c

Log:
add some useful debug info

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Tue Aug  1 15:43:24 2006
 <at>  <at>  -586,6 +586,7  <at>  <at> 
         sc->esds.avg_bitrate = get_be32(pb);

         st->codec->codec_id= codec_get_id(ff_mov_obj_type, sc->esds.object_type_id);
+        dprintf("esds object type id %d\n", sc->esds.object_type_id);
         len = mov_mp4_read_descr(pb, &tag);
         if (tag == MP4DecSpecificDescrTag) {
             dprintf("Specific MPEG4 header len=%d\n", len);
 <at>  <at>  -1056,6 +1057,7  <at>  <at> 
             get_be32(pb); /* vendor */

             st->codec->channels = get_be16(pb);             /* channel count */
+            dprintf("audio channels %d\n", st->codec->channels);
             st->codec->bits_per_sample = get_be16(pb);      /* sample size */
             /* do we need to force to 16 for AMR ? */
(Continue reading)

bcoudurier | 1 Aug 16:58 2006
Picon

r5882 - in trunk/libavformat: Makefile isom.c isom.h mov.c mov.h movenc.c

Author: bcoudurier
Date: Tue Aug  1 16:58:15 2006
New Revision: 5882

Added:
   trunk/libavformat/isom.c
   trunk/libavformat/isom.h
      - copied, changed from r5881, /trunk/libavformat/mov.h
Removed:
   trunk/libavformat/mov.h
Modified:
   trunk/libavformat/Makefile
   trunk/libavformat/mov.c
   trunk/libavformat/movenc.c

Log:
move common code from mov.c and movenc.c to isom.c

Modified: trunk/libavformat/Makefile
==============================================================================
--- trunk/libavformat/Makefile	(original)
+++ trunk/libavformat/Makefile	Tue Aug  1 16:58:15 2006
 <at>  <at>  -57,12 +57,12  <at>  <at> 
 OBJS-$(CONFIG_MM_DEMUXER)                += mm.o
 OBJS-$(CONFIG_MMF_DEMUXER)               += mmf.o riff.o
 OBJS-$(CONFIG_MMF_MUXER)                 += mmf.o riff.o
-OBJS-$(CONFIG_MOV_DEMUXER)               += mov.o riff.o
-OBJS-$(CONFIG_MOV_MUXER)                 += movenc.o riff.o
-OBJS-$(CONFIG_TGP_MUXER)                 += movenc.o riff.o
-OBJS-$(CONFIG_MP4_MUXER)                 += movenc.o riff.o
(Continue reading)


Gmane