[FFmpeg-trac] #1043(undetermined:open): Predefined SLConfigDescriptor

FFmpeg trac at avcodec.org
Fri Mar 30 08:13:15 CEST 2012


#1043: Predefined SLConfigDescriptor
-------------------------------------+-------------------------------------
             Reporter:  puck         |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by puck):

 Hi All,

 It would appear that the "ERROR" is reported via the following piece of
 code in mpegts.c!

 That is the only place "Windows Grep" could find it

 Searched in the following source code libs with the results as noted .....
 ffmpeg-0.5.tar.bz2    .... not found
 ffmpeg-0.6.2.tar.bz2  .... not found
 ffmpeg-0.6.5.tar.gz   .... not found
 ffmpeg-0.7.1.tar.bz2  .... not found
 ffmpeg-0.9.1.tar.bz2  .... not found
 ffmpeg-0.10.2.tar.bz2 .... FOUND

 static int parse_MP4SLDescrTag(MP4DescrParseContext *d, int64_t off, int
 len)
 {
     Mp4Descr *descr = d->active_descr;
     int predefined;
     if (!descr)
         return -1;

     predefined = avio_r8(&d->pb);
     if (!predefined) {
         int lengths;
         int flags = avio_r8(&d->pb);
         descr->sl.use_au_start       = !!(flags & 0x80);
         descr->sl.use_au_end         = !!(flags & 0x40);
         descr->sl.use_rand_acc_pt    = !!(flags & 0x20);
         descr->sl.use_padding        = !!(flags & 0x08);
         descr->sl.use_timestamps     = !!(flags & 0x04);
         descr->sl.use_idle           = !!(flags & 0x02);
         descr->sl.timestamp_res      = avio_rb32(&d->pb);
                                        avio_rb32(&d->pb);
         descr->sl.timestamp_len      = avio_r8(&d->pb);
         descr->sl.ocr_len            = avio_r8(&d->pb);
         descr->sl.au_len             = avio_r8(&d->pb);
         descr->sl.inst_bitrate_len   = avio_r8(&d->pb);
         lengths                      = avio_rb16(&d->pb);
         descr->sl.degr_prior_len     = lengths >> 12;
         descr->sl.au_seq_num_len     = (lengths >> 7) & 0x1f;
         descr->sl.packet_seq_num_len = (lengths >> 2) & 0x1f;
     } else {
         av_log_missing_feature(d->s, "Predefined SLConfigDescriptor\n",
 0);
     }
     return 0;
 }

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1043#comment:5>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list