michael | 1 Sep 2007 01:59
Picon

r10276 - trunk/ffplay.c

Author: michael
Date: Sat Sep  1 01:59:45 2007
New Revision: 10276

Log:
fix 1fps videos

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	(original)
+++ trunk/ffplay.c	Sat Sep  1 01:59:45 2007
 <at>  <at>  -1012,7 +1012,7  <at>  <at>  static void video_refresh_timer(void *op

             /* compute nominal delay */
             delay = vp->pts - is->frame_last_pts;
-            if (delay <= 0 || delay >= 1.0) {
+            if (delay <= 0 || delay >= 2.0) {
                 /* if incorrect delay, use previous one */
                 delay = is->frame_last_delay;
             }
aurel | 1 Sep 2007 15:04
Picon

r10277 - trunk/libavcodec/vp6.c

Author: aurel
Date: Sat Sep  1 15:04:25 2007
New Revision: 10277

Log:
add a warning message for unsupported kind of encoding

Modified:
   trunk/libavcodec/vp6.c

Modified: trunk/libavcodec/vp6.c
==============================================================================
--- trunk/libavcodec/vp6.c	(original)
+++ trunk/libavcodec/vp6.c	Sat Sep  1 15:04:25 2007
 <at>  <at>  -126,7 +126,9  <at>  <at>  static int vp6_parse_header(vp56_context
             s->filter_selection = 16;
     }

-    vp56_rac_get(c);
+    if (vp56_rac_get(c))
+        av_log(s->avctx, AV_LOG_WARNING,
+               "alternative entropy decoding not supported\n");

     if (coeff_offset) {
         vp56_init_range_decoder(&s->cc, buf+coeff_offset,
lu_zero | 1 Sep 2007 16:00
Picon

r10278 - trunk/libavcodec/snow.c

Author: lu_zero
Date: Sat Sep  1 16:00:47 2007
New Revision: 10278

Log:
Cosmetics

Modified:
   trunk/libavcodec/snow.c

Modified: trunk/libavcodec/snow.c
==============================================================================
--- trunk/libavcodec/snow.c	(original)
+++ trunk/libavcodec/snow.c	Sat Sep  1 16:00:47 2007
 <at>  <at>  -716,7 +716,11  <at>  <at>  static inline int get_symbol2(RangeCoder
     return v;
 }

-static av_always_inline void lift(DWTELEM *dst, DWTELEM *src, DWTELEM *ref, int dst_step, int
src_step, int ref_step, int width, int mul, int add, int shift, int highpass, int inverse){
+static av_always_inline void
+lift(DWTELEM *dst, DWTELEM *src, DWTELEM *ref,
+     int dst_step, int src_step, int ref_step,
+     int width, int mul, int add, int shift,
+     int highpass, int inverse){
     const int mirror_left= !highpass;
     const int mirror_right= (width&1) ^ highpass;
     const int w= (width>>1) - 1 + (highpass & width);
 <at>  <at>  -730,15 +734,25  <at>  <at>  static av_always_inline void lift(DWTELE
     }
(Continue reading)

vitor | 1 Sep 2007 23:03
Picon

r10279 - in trunk/libavcodec: alac.c unary.h

Author: vitor
Date: Sat Sep  1 23:03:17 2007
New Revision: 10279

Log:
Remove reimplementation of get_unary.
Based on a patch by Alex Beregszaszi.

Modified:
   trunk/libavcodec/alac.c
   trunk/libavcodec/unary.h

Modified: trunk/libavcodec/alac.c
==============================================================================
--- trunk/libavcodec/alac.c	(original)
+++ trunk/libavcodec/alac.c	Sat Sep  1 23:03:17 2007
 <at>  <at>  -55,6 +55,7  <at>  <at> 
 #include "avcodec.h"
 #include "bitstream.h"
 #include "bytestream.h"
+#include "unary.h"

 #define ALAC_EXTRADATA_SIZE 36
 #define MAX_CHANNELS 2
 <at>  <at>  -159,14 +160,12  <at>  <at>  static void bastardized_rice_decompress(
     int sign_modifier = 0;

     for (output_count = 0; output_count < output_size; output_count++) {
-        int32_t x = 0;
+        int32_t x;
(Continue reading)

michael | 2 Sep 2007 17:58
Picon

r10280 - trunk/libavformat/asf.c

Author: michael
Date: Sun Sep  2 17:58:43 2007
New Revision: 10280

Log:
workaround ms (lack of) intelligence in their design of dvr-ms
yes kids you dont make 90% of your file contain empty dummy packets

Modified:
   trunk/libavformat/asf.c

Modified: trunk/libavformat/asf.c
==============================================================================
--- trunk/libavformat/asf.c	(original)
+++ trunk/libavformat/asf.c	Sun Sep  2 17:58:43 2007
 <at>  <at>  -826,6 +826,19  <at>  <at>  static int asf_read_packet(AVFormatConte
         asf_st->frag_offset += asf->packet_frag_size;
         /* test if whole packet is read */
         if (asf_st->frag_offset == asf_st->pkt.size) {
+            //workaround for macroshit radio DVR-MS files
+            if(   s->streams[asf->stream_index]->codec->codec_id == CODEC_ID_MPEG2VIDEO
+               && asf_st->pkt.size > 100){
+                int i;
+                for(i=0; i<asf_st->pkt.size && !asf_st->pkt.data[i]; i++);
+                if(i == asf_st->pkt.size){
+                    av_log(s, AV_LOG_DEBUG, "discarding ms fart\n");
+                    asf_st->frag_offset = 0;
+                    av_free_packet(&asf_st->pkt);
+                    continue;
+                }
(Continue reading)

michael | 2 Sep 2007 18:03
Picon

[propchange]: r10280 - svn:log

Author: michael
Revision: 10280
Property Name: svn:log
Action: modified

Property diff:
--- old property value
+++ new property value
 <at>  <at>  -1,2 +1,3  <at>  <at> 
 workaround ms (lack of) intelligence in their design of dvr-ms
 yes kids you dont make 90% of your file contain empty dummy packets
+closes issue76
jbr | 3 Sep 2007 07:19
Picon

r10281 - trunk/libavformat/utils.c

Author: jbr
Date: Mon Sep  3 07:19:59 2007
New Revision: 10281

Log:
fix probe buffer issue. patch by Wolfram Gloger {wmglo at dent.med.uni-muenchen.de}.
[FFmpeg-devel] [PATCH] ac3_probe input buffer overrun
Aug 28, 2007

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Mon Sep  3 07:19:59 2007
 <at>  <at>  -445,6 +445,7  <at>  <at>  int av_open_input_file(AVFormatContext *
             /* read probe data */
             pd->buf= av_realloc(pd->buf, probe_size + AVPROBE_PADDING_SIZE);
             pd->buf_size = get_buffer(pb, pd->buf, probe_size);
+            memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);
             if (url_fseek(pb, 0, SEEK_SET) < 0) {
                 url_fclose(pb);
                 if (url_fopen(pb, filename, URL_RDONLY) < 0) {
 <at>  <at>  -1866,9 +1867,10  <at>  <at>  int av_find_stream_info(AVFormatContext 

             if (st->codec->codec_id == CODEC_ID_NONE) {
                 AVProbeData *pd = &(probe_data[st->index]);
-                pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size);
+                pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
(Continue reading)

lucabe | 3 Sep 2007 09:14
Picon

r10282 - trunk/libavformat/rtp_mpv.c

Author: lucabe
Date: Mon Sep  3 09:14:10 2007
New Revision: 10282

Log:
Correctly set the "P" field in the payload header

Modified:
   trunk/libavformat/rtp_mpv.c

Modified: trunk/libavformat/rtp_mpv.c
==============================================================================
--- trunk/libavformat/rtp_mpv.c	(original)
+++ trunk/libavformat/rtp_mpv.c	Mon Sep  3 09:14:10 2007
 <at>  <at>  -31,11 +31,12  <at>  <at>  void ff_rtp_send_mpegvideo(AVFormatConte
     AVStream *st = s1->streams[0];
     int len, h, max_packet_size;
     uint8_t *q;
-    int begin_of_slice, end_of_slice;
+    int begin_of_slice, end_of_slice, frame_type;

     max_packet_size = s->max_payload_size;
     begin_of_slice = 1;
     end_of_slice = 0;
+    frame_type = 0;

     while (size > 0) {
         len = max_packet_size - 4;
 <at>  <at>  -53,6 +54,10  <at>  <at>  void ff_rtp_send_mpegvideo(AVFormatConte
                 r = ff_find_start_code(r1, buf1 + size, &start_code);
(Continue reading)

lucabe | 3 Sep 2007 09:22
Picon

r10283 - trunk/libavformat/rtp_mpv.c

Author: lucabe
Date: Mon Sep  3 09:22:37 2007
New Revision: 10283

Log:
Set the "TR" field in the payload header

Modified:
   trunk/libavformat/rtp_mpv.c

Modified: trunk/libavformat/rtp_mpv.c
==============================================================================
--- trunk/libavformat/rtp_mpv.c	(original)
+++ trunk/libavformat/rtp_mpv.c	Mon Sep  3 09:22:37 2007
 <at>  <at>  -31,12 +31,13  <at>  <at>  void ff_rtp_send_mpegvideo(AVFormatConte
     AVStream *st = s1->streams[0];
     int len, h, max_packet_size;
     uint8_t *q;
-    int begin_of_slice, end_of_slice, frame_type;
+    int begin_of_slice, end_of_slice, frame_type, temporal_reference;

     max_packet_size = s->max_payload_size;
     begin_of_slice = 1;
     end_of_slice = 0;
     frame_type = 0;
+    temporal_reference = 0;

     while (size > 0) {
         len = max_packet_size - 4;
 <at>  <at>  -56,6 +57,7  <at>  <at>  void ff_rtp_send_mpegvideo(AVFormatConte
(Continue reading)

lucabe | 3 Sep 2007 09:28
Picon

r10284 - trunk/libavformat/rtp_mpv.c

Author: lucabe
Date: Mon Sep  3 09:28:58 2007
New Revision: 10284

Log:
Set the "B" flag in the payload header

Modified:
   trunk/libavformat/rtp_mpv.c

Modified: trunk/libavformat/rtp_mpv.c
==============================================================================
--- trunk/libavformat/rtp_mpv.c	(original)
+++ trunk/libavformat/rtp_mpv.c	Mon Sep  3 09:28:58 2007
 <at>  <at>  -40,6 +40,9  <at>  <at>  void ff_rtp_send_mpegvideo(AVFormatConte
     temporal_reference = 0;

     while (size > 0) {
+        int begin_of_sequence;
+
+        begin_of_sequence = 0;
         len = max_packet_size - 4;

         if (len >= size) {
 <at>  <at>  -59,6 +62,9  <at>  <at>  void ff_rtp_send_mpegvideo(AVFormatConte
                         frame_type = (r[1] & 0x38) >> 3;
                         temporal_reference = (int)r[0] << 2 | r[1] >> 6;
                     }
+                    if (start_code == 0x1B8) {
+                        begin_of_sequence = 1;
(Continue reading)


Gmane