[FFmpeg-trac] #3128(avcodec:new): cavs silently ignores garbage data

FFmpeg trac at avcodec.org
Wed Nov 13 05:54:29 CET 2013


#3128: cavs silently ignores garbage data
------------------------------------+--------------------------------------
             Reporter:  Timothy_Gu  |                     Type:  defect
               Status:  new         |                 Priority:  normal
            Component:  avcodec     |                  Version:  git-master
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+--------------------------------------
 Summary of the bug:
 I generated some junk from /dev/urandom and fed it to cavs, and it just
 silently ignores the junk and outputed no frame. It should at least split
 out some error messages.

 How to reproduce:
 {{{
 ./ffmpeg -s 640x320 -f rawvideo -vcodec cavs -i ran -f null -
 ffmpeg version N-58044-ge1c7892 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Nov 12 2013 15:55:42 with gcc 4.8 (Ubuntu/Linaro
 4.8.1-10ubuntu8)
   configuration:
   libavutil      52. 52.100 / 52. 52.100
   libavcodec     55. 41.100 / 55. 41.100
   libavformat    55. 21.100 / 55. 21.100
   libavdevice    55.  5.100 / 55.  5.100
   libavfilter     3. 90.102 /  3. 90.102
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
 [rawvideo @ 0x2bc5a20] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, rawvideo, from 'ran':
   Duration: 00:00:05.56, start: 0.000000, bitrate: 61292 kb/s
     Stream #0:0: Video: cavs, yuv420p, 640x320, 61440 kb/s, 25 fps, 25
 tbr, 25 tbn, 25 tbc
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf55.21.100
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x320,
 q=2-31, 200 kb/s, 90k tbn, 25 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (cavs -> rawvideo)
 Press [q] to stop, [?] for help
 frame=    0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A
 video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead -inf%
 Output file is empty, nothing was encoded (check -ss / -t / -frames
 parameters if used)
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3128>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list