diff options
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-error_concealment-Check-that-the-picture-is-not-in-a.patch')
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-error_concealment-Check-that-the-picture-is-not-in-a.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-error_concealment-Check-that-the-picture-is-not-in-a.patch b/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-error_concealment-Check-that-the-picture-is-not-in-a.patch new file mode 100644 index 0000000000..8eef6e99cc --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.13/0001-error_concealment-Check-that-the-picture-is-not-in-a.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | gst-ffmpeg: error_concealment: Check that the picture is not in a half | ||
| 2 | |||
| 3 | Fixes state becoming inconsistent | ||
| 4 | Fixes a null pointer dereference | ||
| 5 | |||
| 6 | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind | ||
| 7 | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | ||
| 8 | (cherry picked from commit 23318a57358358e7a4dc551e830e4503f0638cfe) | ||
| 9 | |||
| 10 | Upstream-Status: Backport | ||
| 11 | |||
| 12 | Signed-off-by: Yue Tao <yue.tao@windriver.com> | ||
| 13 | |||
| 14 | --- | ||
| 15 | libavcodec/error_resilience.c | 6 ++++++ | ||
| 16 | 1 files changed, 6 insertions(+), 0 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c | ||
| 19 | index 01f7424..2b6bc42 100644 | ||
| 20 | --- a/gst-libs/ext/libav/libavcodec/error_resilience.c | ||
| 21 | +++ b/gst-libs/ext/libav/libavcodec/error_resilience.c | ||
| 22 | @@ -793,6 +793,12 @@ void ff_er_frame_end(MpegEncContext *s){ | ||
| 23 | s->picture_structure != PICT_FRAME || // we dont support ER of field pictures yet, though it should not crash if enabled | ||
| 24 | s->error_count==3*s->mb_width*(s->avctx->skip_top + s->avctx->skip_bottom)) return; | ||
| 25 | |||
| 26 | + if ( s->picture_structure == PICT_FRAME | ||
| 27 | + && s->current_picture.linesize[0] != s->current_picture_ptr->linesize[0]) { | ||
| 28 | + av_log(s->avctx, AV_LOG_ERROR, "Error concealment not possible, frame not fully initialized\n"); | ||
| 29 | + return; | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | if(s->current_picture.motion_val[0] == NULL){ | ||
| 33 | av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n"); | ||
| 34 | |||
| 35 | -- | ||
| 36 | 1.7.5.4 | ||
| 37 | |||
