On 21.07.2019, at 02:51, James Almer <g...@videolan.org> wrote: > ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Sat Jul 20 > 10:13:08 2019 -0300| [a38eab8b7501440f872ff1af8a0c5482b7b3e532] | committer: > James Almer > > avformat/aacdec: factorize the adts frame resync code > > Signed-off-by: James Almer <jamr...@gmail.com> > >> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a38eab8b7501440f872ff1af8a0c5482b7b3e532 > --- > > libavformat/aacdec.c | 37 +++++++++++++++++++++++++------------ > 1 file changed, 25 insertions(+), 12 deletions(-) > > diff --git a/libavformat/aacdec.c b/libavformat/aacdec.c > index 8a5450880b..262614fdd9 100644 > --- a/libavformat/aacdec.c > +++ b/libavformat/aacdec.c > @@ -80,10 +80,31 @@ static int adts_aac_probe(const AVProbeData *p) > return 0; > } > > +static int adts_aac_resync(AVFormatContext *s) > +{ > + uint16_t state; > + > + // skip data until an ADTS frame is found > + state = avio_r8(s->pb);
Nit: could have merged declaration an initialization here. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".