Răsfoiți Sursa

*** empty log message ***

Dustin Barnard 19 ani în urmă
părinte
comite
1a20ccab5c
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      panda/src/grutil/ffmpegTexture.cxx

+ 2 - 2
panda/src/grutil/ffmpegTexture.cxx

@@ -279,8 +279,8 @@ void FFMpegTexture::update_frame(int frame) {
         unsigned char *dest = _ram_images[0]._image.p() + get_expected_ram_page_size() * z;
         int dest_row_width = (_x_size * _num_components * _component_width);
         
-        int source_row_width= page._color.pCodecCtx->width * 3;
-        unsigned char * source=(unsigned char *)page._color.pFrameOut->data[0]
+        int source_row_width= page._alpha.pCodecCtx->width * 3;
+        unsigned char * source=(unsigned char *)page._alpha.pFrameOut->data[0]
                                 +source_row_width*(get_video_height()-1);
         for (int y = 0; y < get_video_height(); ++y) {
           int dx = 3;