[FFmpeg-cvslog] avformat/mov: remove redundant assignment
Ganesh Ajjanagadde
git at videolan.org
Mon Nov 16 13:43:39 CET 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Sun Nov 15 20:58:46 2015 -0500| [8adff79b6d30d1ae2cb9cf906e1d7fcd759cd638] | committer: Ganesh Ajjanagadde
avformat/mov: remove redundant assignment
This is possibly undefined behavior based on sequence point rules, but I
have not studied the spec at that level of detail.
Fixes: CID 1338321.
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8adff79b6d30d1ae2cb9cf906e1d7fcd759cd638
---
libavformat/mov.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 7ab2808..0eb7272 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -4936,7 +4936,7 @@ static int mov_seek_fragment(AVFormatContext *s, AVStream *st, int64_t timestamp
for (i = 0; i < mov->fragment_index_count; i++) {
if (mov->fragment_index_data[i]->track_id == st->id) {
- MOVFragmentIndex *index = index = mov->fragment_index_data[i];
+ MOVFragmentIndex *index = mov->fragment_index_data[i];
for (j = index->item_count - 1; j >= 0; j--) {
if (index->items[j].time <= timestamp) {
if (index->items[j].headers_read)
More information about the ffmpeg-cvslog
mailing list