nutenc/write_index: warn if 2 consecutive keyframes have the same PTS and discard...
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Dec 2013 17:47:28 +0000 (18:47 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 24 Dec 2013 07:09:53 +0000 (08:09 +0100)
commit848af79decd25aff03a17d5fd736181b4f2108c5
tree45a0f87d4b5ef3409bebad9eb90268bb3ff65cef
parent50ff83e3afa75535bea839873f3e4c2356a979f6
nutenc/write_index: warn if 2 consecutive keyframes have the same PTS and discard the 2nd

This fixes an assertion failure and regression and restores previous behaviour
Fixes Ticket3197

An alternative would be to fail hard in this case and refuse to mux such data.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit de2a2caf4dedb28a959d0ff6f02751bb6c3ff033)
libavformat/nutenc.c