You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/mov: reuse existing err variable
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -5647,12 +5647,10 @@ static int mov_read_header(AVFormatContext *s)
|
|||||||
break;
|
break;
|
||||||
case AVMEDIA_TYPE_VIDEO:
|
case AVMEDIA_TYPE_VIDEO:
|
||||||
if (sc->display_matrix) {
|
if (sc->display_matrix) {
|
||||||
int ret;
|
err = av_stream_add_side_data(st, AV_PKT_DATA_DISPLAYMATRIX, (uint8_t*)sc->display_matrix,
|
||||||
|
|
||||||
ret = av_stream_add_side_data(st, AV_PKT_DATA_DISPLAYMATRIX, (uint8_t*)sc->display_matrix,
|
|
||||||
sizeof(int32_t) * 9);
|
sizeof(int32_t) * 9);
|
||||||
if (ret < 0)
|
if (err < 0)
|
||||||
return ret;
|
return err;
|
||||||
|
|
||||||
sc->display_matrix = NULL;
|
sc->display_matrix = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user