libeplayer3/container_ffmpeg.c: re-order packet.data check (not sure whether this is needed at all)

Origin commit data
------------------
Branch: master
Commit: b78249cd02
Author: martii <m4rtii@gmx.de>
Date: 2013-07-22 (Mon, 22 Jul 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-07-22 18:39:11 +02:00
parent aa46b435b8
commit 00b870b94f

View File

@@ -427,6 +427,12 @@ static void FFMPEGThread(Context_t *context) {
if (av_read_frame(avContext, &packet) == 0 ) if (av_read_frame(avContext, &packet) == 0 )
{ {
if (!packet.data) {
ffmpeg_err("no data ->end of file reached ? \n");
releaseMutex(FILENAME, __FUNCTION__,__LINE__);
break;
}
long long int pts; long long int pts;
Track_t * videoTrack = NULL; Track_t * videoTrack = NULL;
Track_t * audioTrack = NULL; Track_t * audioTrack = NULL;
@@ -818,13 +824,7 @@ static void FFMPEGThread(Context_t *context) {
} }
} }
if (packet.data)
av_free_packet(&packet); av_free_packet(&packet);
else {
ffmpeg_err("no data ->end of file reached ? \n");
releaseMutex(FILENAME, __FUNCTION__,__LINE__);
break;
}
releaseMutex(FILENAME, __FUNCTION__,__LINE__); releaseMutex(FILENAME, __FUNCTION__,__LINE__);