On 06.07.2015 10:43, Luca Barbato wrote:
> On 05/07/15 20:42, Andreas Cadhalpun wrote:
>> Like that:
>> if (s->packet_loss) {
>> /* Reset number of saved bits so that the decoder does not start
>> * to decode incomplete frames in the s->len_prefix == 0 case. */
>> s->num_saved_bits = 0;
>> s->packet_loss = 0;
>> init_put_bits(&s->pb, s->frame_data, MAX_FRAMESIZE);
>> }
>
> So there is a combination that would not return invaliddata and yet
> return an invalid frame?
Exactly that is the problem. In particular:
*got_frame_ptr = s->frame->nb_samples > 0;
So got_frame_ptr gets set, even though no frame data is present.
Best regards,
Andreas
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel