summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-11-19 00:54:58 -0300
committerJames Almer <jamrial@gmail.com>2016-11-19 00:54:58 -0300
commiteb3a59c903bd9e7547061c23d9559c130421e7b0 (patch)
tree39d53b35578ae62905dc0b8195afcd065f5055b5 /libavformat
parent77f033eb98d0d7d05f3aa238409d87fb1f6096b3 (diff)
downloadffmpeg-streaming-eb3a59c903bd9e7547061c23d9559c130421e7b0.zip
ffmpeg-streaming-eb3a59c903bd9e7547061c23d9559c130421e7b0.tar.gz
avformat/mov: reuse existing err variable
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 9bf436e..9cd0398 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -5647,12 +5647,10 @@ static int mov_read_header(AVFormatContext *s)
break;
case AVMEDIA_TYPE_VIDEO:
if (sc->display_matrix) {
- int ret;
-
- ret = av_stream_add_side_data(st, AV_PKT_DATA_DISPLAYMATRIX, (uint8_t*)sc->display_matrix,
+ err = av_stream_add_side_data(st, AV_PKT_DATA_DISPLAYMATRIX, (uint8_t*)sc->display_matrix,
sizeof(int32_t) * 9);
- if (ret < 0)
- return ret;
+ if (err < 0)
+ return err;
sc->display_matrix = NULL;
}
OpenPOWER on IntegriCloud