[FFmpeg-trac] #1310(undetermined:new): support "Autodesk 24 bit RLE compressor" codec

FFmpeg trac at avcodec.org
Wed May 16 08:46:37 CEST 2012


#1310: support "Autodesk 24 bit RLE compressor" codec
-------------------------------------+-------------------------------------
             Reporter:  ami_stuff    |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by ami_stuff):

 ffmpeg's decoder probably looks in a wrong place for compr type when
 forced to decode aas4, with this patch aas4 sample decodes correctly:

 {{{
    switch(compr){
     case 0:
         stride = (avctx->width * 3 + 3) & ~3;
         for(i = avctx->height - 1; i >= 0; i--){
             if(avctx->width*3 > buf_size){
                 av_log(avctx, AV_LOG_ERROR, "Next line is beyond buffer
 bounds\n");
                 break;
             }
             memcpy(s->frame.data[0] + i*s->frame.linesize[0], buf,
 avctx->width*3);
             buf += stride;
             buf_size -= stride;
         }
         break;
     case 1:
 +   case 1362427392:
         bytestream2_init(&s->gb, buf - 4, buf_size + 4);
         ff_msrle_decode(avctx, (AVPicture*)&s->frame, 8, &s->gb);
         break;
     default:
         av_log(avctx, AV_LOG_ERROR, "Unknown compression type %d\n",
 compr);
         return -1;
     }
 }}}

 here is a longer video for test:

 http://www.datafilehost.com/download-2de32896.html

 ffmpeg -vcodec aasc -i aas4.avi out.avi

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


More information about the FFmpeg-trac mailing list