[Bug 785011] Sometime between 1.10.4 and 1.12.0 MKV video decode broke when mapping buffers to get pixel data

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Jul 18 08:13:24 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=785011

--- Comment #16 from Carsten Haitzler (Rasterman) <raster at rasterman.com> ---
i dumped just the y plane data:

  http://www.enlightenment.org/ss/e-596dc245b80205.49695288.png

i dumped it as a pgm (quick and dirty):

   printf("y plane off=%i stride=%i\n",
          (int)send->info.offset[0], (int)send->info.stride[0]);
   FILE *f = fopen("/home/raster/out.pgm", "w");
   fprintf(f, "P5\n%i %i\n255\n",
           send->info.width, send->info.height);
   int i;
   char *p = map.data;
   p += send->info.offset[0];
   for (i = 0; i < send->info.height; i++)
     {
        fwrite(p, send->info.width, 1, f);
        p += send->info.stride[0];
     }
   fclose(f);

the y plane offset and stride:

  y plane off=0 stride=856

map.data is the mapped data ptr. send->info is the GstVideoInfo struct content
from gst... so what is in the mapped data memory is seemingly in some other
layout/format than what the format + colormatrix say and what plane and stride
values say... or they are simply not even using the same memory/data... ?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list