mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
vpxdec: Don't memcpy in frame map failed
This avoid a crash if mapping the frame failed.
This commit is contained in:
parent
8e75acc7b7
commit
1521f65e8d
2 changed files with 2 additions and 0 deletions
|
@ -378,6 +378,7 @@ gst_vp8_dec_image_to_buffer (GstVP8Dec * dec, const vpx_image_t * img,
|
|||
|
||||
if (!gst_video_frame_map (&frame, info, buffer, GST_MAP_WRITE)) {
|
||||
GST_ERROR_OBJECT (dec, "Could not map video buffer");
|
||||
return;
|
||||
}
|
||||
|
||||
for (comp = 0; comp < 3; comp++) {
|
||||
|
|
|
@ -375,6 +375,7 @@ gst_vp9_dec_image_to_buffer (GstVP9Dec * dec, const vpx_image_t * img,
|
|||
|
||||
if (!gst_video_frame_map (&frame, info, buffer, GST_MAP_WRITE)) {
|
||||
GST_ERROR_OBJECT (dec, "Could not map video buffer");
|
||||
return;
|
||||
}
|
||||
|
||||
for (comp = 0; comp < 3; comp++) {
|
||||
|
|
Loading…
Reference in a new issue