mediacodec: Don't return frames before the output format is set
The decoder on Sony Xperia Z1 seems to return one frame before
the output format is set (and calling getOutputFormat() at this
point throws an IllegalStateException). Therefore just drop any
frames that are returned before the output format has been set.
Signed-off-by: Martin Storsjö <martin@martin.st>
Showing
Please register or sign in to comment